help!!

nitejewel's icon

Hi,
I've a problem with my patch. I don't understand why the sound of the notes are fixed when I play.
Anyone can help me?
To let it works you have to select canoncancrizans in both instruments at the top.

thanks

NJ

1852.NJPATCH.maxpat.zip
zip
AudioMatt's icon

step 1)
copy patch.

step 2)
start deleting everything other than the part you are concerned with.

step 3)
Once you have the smallest bit of code that still functions but not correct, test points along the way with message or print to make sure they are they are sending the messages you expect.

step 4)
when you're convinced that something is weird or you just cant figure it out, repost it.

I'm getting these errors in my max window when I play the top keyboard:
pink~: doesn't understand "float"
noise~: doesn't understand "float"

patch looks cool,
Good luck and god speed.

nitejewel's icon

yes thanks you're right, I tried again but I really don't know what to do
even if I delete some stuff. I don't find the problem!
I will try again

cheers

NJ

AudioMatt's icon

Well what I was trying to say is that I have no clue what to do to even get the results you're saying are incorrect. Your patch has three keyboards, a lots of sliders and a ton of other things and the labels are in a different language.

The keyboard I hear making noise seems to be functioning correctly. Can you provide some instructions so I can check out whats going on?

I would suggest making extensive use of pvar,send, receive, and presentation mode. Your current patching practice is probably leading to some confusion in terms of what messages are happening first. Max runs left to right and up to down. So when you patch up, things get confusing.

nitejewel's icon

Yes I'm sorry

1) click on both canoncancrizans and choose one on the list
2) put both the gains up
3) choose the waves (they are called onda 1, onda 2 etc)
4) put the sliders up
5) press F to play the number one and SPACE to play the second one

then you will see that the notes are fixed and i dont understand how!

what u see under is just to let it works with iphone.
I choosed 2 buttons to let the iphone play the F and the SPACE

AudioMatt's icon

first of all, it sounds cool!
second of all, what do you mean by fixed? both the F button and the space button change the pitches I hear...

I think I know what the problem might be.

Max Patch
Copy patch and select New From Clipboard in Max.

this should help you troubleshoot your patch. all I did was delete the iphone stuff and organize it. As far as I can tell the patching and logic is all the same but you can see problems easier because it's simpler.

AudioMatt's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Is this what you want?

nitejewel's icon

the problem is that the notes are long and they never stop
i would love that they stop after i push F or SPACE

AudioMatt's icon

did that help?

nitejewel's icon

No because the problem is still the same.
when i play a note pressing F or SPACE i want it stops
and it doesnt.
There's something wrong with the note off signal

AudioMatt's icon

ok where in your patch do you think a note off signal *should* be being sent? The only thing I see that could send a note off signal is the flush message which is only triggered via the iphone stuff.

perhaps you want to use makenote?

AudioMatt's icon

wait... makenote doesn't work.
I don't have time right now but I bet if you look up monophonic legato, you'll find what you're looking for.

AudioMatt's icon

you might look up the lreg object from lobjects. I believe that might help

AudioMatt's icon
Max Patch
Copy patch and select New From Clipboard in Max.

or this

spokeNine's icon

Just to be clear, AudioMatt, "Max runs left to right, up to down"?
Max processes objects right to left, which is why, in this lil patch, you get a different result in the final integer object depending on whether the red object is to the right or to the left of the yellow object.

If you meant something else, I'm eager to learn!

Max Patch
Copy patch and select New From Clipboard in Max.

AudioMatt's icon

Nope! typo! please excuse.

AudioMatt's icon

the point is that there's a way to lay out a patch (more specifically, there is a way to patch) that doesn't result in spaghetti which chords running over objects and procedures that you zig zag across the screen. It actually feels pretty formal in my mind and if I knew enough of the C API I think I could write a fairly comprehensive clean up algorithm for it.

nitejewel's icon

oh thanks the last one is fine, that's what i was talking about!
now I have a look and I let you know soon!

nitejewel's icon

OK! like this is working and the notes stop as I wanted.
I took all the iphone elements to let them work with the instruments and the buttons work fine.
now I've just the last problem : I tried to put the filtergraph into the instruments
but I feel a noise and I don't know how to stop it!
after this the patch is fine.

thank you very much

1859.NJPATCHAA.maxpat.zip
zip
AudioMatt's icon

I hear no noise. make sure your adsr isn't set to 0 ms attack or 0 ms release.

nitejewel's icon

ok I restarted max and now is working!
I'm trying to put also accelerometer with a vibrato/tremolo, looks cool.
do you have iphone and touchOSC?
if it works i send you the patch.

AudioMatt's icon

sure! matt ...at... estatesound.... • ... com