Discussion:
[haskell-art] Harmony
CK Kashyap
2013-03-19 16:46:49 UTC
Permalink
Hi,
I am trying to understand harmony. I'd appreciate it very much if I could get some resources to understanding it. Preferably that does not require me to know music notation (other than Haskell that is).


I also have some Euterpea questions - 

1. Is this the right code to get the pedal effect in Piano?
    phrase [(Art Pedal)] note
It does not seem to work.

2. How can I do the note stretching effect - as in when I press a particular fret of a guitar and then drag it to increase the pitch?

3.  Keeping time seems like a struggle to me .... I was wondering if I am doing the composition right .. it very clear that this composition does not keep up with the rhythm but it's difficult to go back and edit and then listen to the whole thing to see if the rhythm is correct. I'd appreciate some advice.
https://github.com/ckkashyap/LearningPrograms/blob/master/Haskell/haskore/talash.hs - here I was trying to



Regards,
Kashyap
Donya Quick
2013-03-19 17:59:50 UTC
Permalink
I can't help with the harmony resource question, but I will try to
address some of the others.
Post by CK Kashyap
1. Is this the right code to get the pedal effect in Piano?
The notation "phrase [(Art Pedal)] x" where x is a Music value is
correct, but I don't think the provided Player definitions in Euterpea
(defPlayer and fancyPlayer) currently address Pedal. So, the phrase
notation will compile, but you won't hear any change in the output.
You would need to create a new player that adds this functionality.
Post by CK Kashyap
How can I do the note stretching effect - as in when I press a particular fret of a guitar and then drag it to increase the pitch?
Pitch bends are handled by a separate controller in MIDI, often called
the pitch wheel. There is currently no way to place this kind of
information in a Music (Pitch, [NoteAttribute]) value. One option
would be to encode pitch wheel events as Params values, but it would
still require adding additional support at the performance and Midi
conversion levels. Someone else recently asked me about doing
microtones in Euterpea, which can be done (sort of) using pitch wheel
events. I did have an old implementation of that, although it now
out-dated and would require modification to work with the current
Euterpea version. I'm still looking for where that old code of mine
went, but when I do eventually find it, I can send it to you as a
reference for the general steps needed to address pitch wheel events.
Post by CK Kashyap
3. Keeping time seems like a struggle to me .... I was wondering if I am doing the composition right ..
Can you describe more what you are hearing that sounds out of sync?
Running "doit" to play your music value sounds in time to me, so I a
wondering if this is a playback software/hardware problem.

-----Donya
Post by CK Kashyap
Hi,
I am trying to understand harmony. I'd appreciate it very much if I could get some resources to understanding it. Preferably that does not require me to know music notation (other than Haskell that is).
I also have some Euterpea questions -
1. Is this the right code to get the pedal effect in Piano?
phrase [(Art Pedal)] note
It does not seem to work.
2. How can I do the note stretching effect - as in when I press a particular fret of a guitar and then drag it to increase the pitch?
3. Keeping time seems like a struggle to me .... I was wondering if I am doing the composition right .. it very clear that this composition does not keep up with the rhythm but it's difficult to go back and edit and then listen to the whole thing to see if the rhythm is correct. I'd appreciate some advice.
https://github.com/ckkashyap/LearningPrograms/blob/master/Haskell/haskore/talash.hs - here I was trying to reproduce http://youtu.be/NQncvPWen0o
Regards,
Kashyap
CK Kashyap
2013-03-20 05:37:53 UTC
Permalink
Pitch bends - yup (I was not able to recall that yesterday) - If I am not wrong, we may be able to generate the effect close to it with quick note successions ... perhaps like the un-anti-aliased graphic.

About the "out of sync" - http://youtu.be/NQncvPWen0o at about 0:40 the song transitions to the song title - that part in my rendition (leadTrackPart2b) seems to be a little conflicting - trying to race with the rhythm. I am not quite sure ... actually in the original track a harmonic chord also starts off so I was even considering if that was the missing thing. Not quite sure.

regards,

Kashyap
________________________________
Sent: Tuesday, March 19, 2013 11:29 PM
Subject: Re: Harmony
I can't help with the harmony resource question, but I will try to
address some of the others.
Post by CK Kashyap
1. Is this the right code to get the pedal effect in Piano?
The notation "phrase [(Art Pedal)] x" where x is a Music value is
correct, but I don't think the provided Player definitions in Euterpea
(defPlayer and fancyPlayer) currently address Pedal. So, the phrase
notation will compile, but you won't hear any change in the output.
You would need to create a new player that adds this functionality.
Post by CK Kashyap
How can I do the note stretching effect - as in when I press a particular fret of a guitar and then drag it to increase the pitch?
Pitch bends are handled by a separate controller in MIDI, often called
the pitch wheel. There is currently no way to place this kind of
information in a Music (Pitch, [NoteAttribute]) value. One option
would be to encode pitch wheel events as Params values, but it would
still require adding additional support at the performance and Midi
conversion levels. Someone else recently asked me about doing
microtones in Euterpea, which can be done (sort of) using pitch wheel
events. I did have an old implementation of that, although it now
out-dated and would require modification to work with the current
Euterpea version. I'm still looking for where that old code of mine
went, but when I do eventually find it, I can send it to you as a
reference for the general steps needed to address pitch wheel events.
Post by CK Kashyap
3.  Keeping time seems like a struggle to me .... I was wondering if I am doing the composition right ..
Can you describe more what you are hearing that sounds out of sync?
Running "doit" to play your music value sounds in time to me, so I a
wondering if this is a playback software/hardware problem.
-----Donya
Post by CK Kashyap
Hi,
I am trying to understand harmony. I'd appreciate it very much if I could get some resources to understanding it. Preferably that does not require me to know music notation (other than Haskell that is).
I also have some Euterpea questions -
1. Is this the right code to get the pedal effect in Piano?
    phrase [(Art Pedal)] note
It does not seem to work.
2. How can I do the note stretching effect - as in when I press a particular fret of a guitar and then drag it to increase the pitch?
3.  Keeping time seems like a struggle to me .... I was wondering if I am doing the composition right .. it very clear that this composition does not keep up with the rhythm but it's difficult to go back and edit and then listen to the whole thing to see if the rhythm is correct. I'd appreciate some advice.
https://github.com/ckkashyap/LearningPrograms/blob/master/Haskell/haskore/talash.hs - here I was trying to reproduce http://youtu.be/NQncvPWen0o
Regards,
Kashyap
Loading...