Forums > MaxMSP

Using Frequency instead of MIDI

July 24, 2011 | 3:28 am

I’m completely new to this, so I apologize if this is astonishingly straightforward, how do I use frequency to determine the pitch of play back rather than the 127 note MIDI?


July 24, 2011 | 3:36 am

http://upload.wikimedia.org/math/3/6/7/367dbf9846bcd074e7d2d53a104d16b0.png

I’m new as well, so I’m not sure how to code this, but this is probably what you need. There’s probably something already done though.


July 24, 2011 | 3:38 am

playback of what?


July 24, 2011 | 3:38 am

Since your question is somewhat lacking in detail (what do you want to play back? from where?, etc.), perhaps rephrasing it would be a good idea. Better yet, how about a little quality time with the various tutorials that describe various ways to play back audio – in particular, I would commend the ftom and mtof objects to your attention, and those MSP tutorials that describe in detail how playback of audio materials is generally handled in MSP using the play~ or groove~ objects (MSP chapters 13 and onward). I think that a bit of time with those things may help you to ask your questions more precisely. And, as ever, better questions get you better answers.


July 24, 2011 | 3:57 am

I mean, when using the object, noteout it has you select a number which represents a midi note, for example 64 is E3 (if I remember right) and you can connect a message with that number to noteout and it will play that note when you hit the message. That’s the basics of the basics (tutorial 1 for Midi I think). I want to know how to change it so that it recognizes the frequency instead of the Midi for the noteout object. I’ve been reading through the beginning tutorials and haven’t gotten too far along so that’s probably why, but still it seems fairly basic and I want to make sure I’m not missing anything.

Basically, I want to be able to type in a frequency and connect it to the noteout function and have the frequency sound. I’ve figured out how to convert back and forth between midi and frequency with mtof and ftom but once I have the frequencies I want all they are are numbers and so I’m asking how to use those numbers along with the noteout object to play my desired frequencies.

Thanks


July 24, 2011 | 4:43 am

Noteout is an object that speaks MIDI note numbers. If you want to speak frequencies, you will need to do your own synthesis.

I suppose you could do something with MIDI notes & pitch bend, but it would be a hack at best.


July 24, 2011 | 8:33 am

Try [ftom~]

– Pasted Max Patch, click to expand. –

July 24, 2011 | 9:18 am

Basically, I want to be able to type in a frequency and connect it to the noteout function and have the frequency sound.

You say you want to have a sound out of a noteout object. But the noteout is a midi object and won’t produce any sound. So I guess you have an instrument connected to your MidiOut, right?

Then this instrument will accept notes in a range of 0-127 – the Midi notes. There is no Midi note "10.522" – as you don’t have quarter keys on a piano. So you can convert frequency to midi, but when it’s sent out to the noteout object it’s rounded to an integer between 0-127.


Viewing 8 posts - 1 through 8 (of 8 total)