-
kosuke16
You are right. I did the scaling by mesuring with a tuner and substracting the correct value to the final float. But anyway, the easiest way is to tune the synths everytime I would need to use them in a chromatic world, which is not always the case. I know it isn't an easy/quick approach of the issue, but at the same time, the patch is just for me, so I don't really care. And it is way easier to just turn a physical frequency knob to offset the synth than to calculate everything for every synth at only one frequency knob position and be stuck with that mighty and important knob in only one position.
TBH, so far the basic use I imagined for the patch isn't very interesting but it makes some very nice noises and textures where pitch accuracy isn't that important.
-
kosuke16
Thank you for your reply. It is in fact a log 2 that should be inserted before the scaling. I was pointed to that function on a dev forum mentionning its existence in C# and thought I would try it in PD. Here is the correct patch for what I am trying to achieve. I use 0.203 as it is the float I need to get one octave higher and it is the same between the different octaves so this works.
-
kosuke16
Hello,
I am trying to find a way to convert frequency into a linear scale going from -5 to +5 in float. The goal is to generate a frequency in hertz and onvert it to a float to get a control voltage. I tried entering the frequency value to pow, scale or exp with no success. Is there an object for that ? Or a mathemagic expression ? I never did any log/exp math, so I have no idea how to do it.
Thank you.
-
kosuke16
Whale is right, my bad. I tried it only with the numbers, no audio so while the numbers where good, the timing wasn’t. Note message not being continuous, you have to repack it so it is send at the same time than the velocity to make a coherent list of two values for noteout.
-
kosuke16
It is doing exactly that, or there is something I do not understand in what you are trying to achieve.
-
kosuke16
Maybe this does what you want ?
1 - Moses splits the notes at the value defined by the slider to send only the note values of your right hand to the noteout object.
2 - I pack three floats : note number, split point, all incoming velocity value.
3 - The expression looks if the note value ($f1) is above or below the split point ($f2) : if above (right hand notes pressed), it outputs a zero, if below (left hand) it outputs the notein velocity ($f3).
4 - So you get : right hand : note values, left hand : velocity values.
-
kosuke16
@seb-harmonik.ar Following your reply, I read a lua tutorial today. It seems very interesting and in a way more direct than PD itself. But I have much to learn about the existing libraries already, objects and logical thought process before going into text programming. And I also have to make music sometimes. I rediscovered my old synth with the midi/CV patch I made.
My next project is a simple sequencer based on EDO scales, I think it will bring me further into the arrays / mathematical side of PD. Lots of head scratching to be had. Then I have to learn to put everything into subpatches to build my midi/CV interface according to my needs. Then I have to tweak it and make a version for each of my other synths because tuning, gate voltage etc…
The rabbit hole is deep enough to delay the learning lua a bit for now.
-
kosuke16
@seb-harmonik.ar Thank you ! The mono object in else library does exactly that indeed. The only downside (if one can call it a downside) is that it is working so well by itself that I didn't have to learn anything or scratch my head gazing at the voïd of my logical sense to implement it. It seems to be a fantastic library though.
-
kosuke16
Hello,
I would like to be able to do trills on my midi keyboard like I do on an analog synth : keeping one key pressed down while only pushing the second one. Since it is an analogsynth, the ouput voltage changes when I release the trilling key, but a midi note beeing a one shot message, I can't achieve the same result. I tried to find another midi controller that would send continuous messages as long as a key is depressed but couldn't find one. Aftertouch would be good for that I suppose, but it needs some pressure not compatible with natural playing. Anyway, I tried to alternatively write on the two indexes of an array with the hope that I could somehow get the tabread object to go back to the previous note, but since there is no way of checking if a continuous message is sent, there is no way to tell PD to stop writing at say index 0 because that note is held, just write index 1 and alternate reading from 0 to 1 if that makes sense.
I tried to analyse the miniwoog patch to see if I could find a solution in there somewhere as it seems to support all kind of note priority and legato mode but couldn't find anything that I would understand.
Here is the patch :
Key input.pdThank you for any help.
-
kosuke16
@alexandros Hello ! I have already found and read you tutorial. IThank you for doing that, it helped me understand some stuff.