Using Frequency instead of MIDI
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?
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.
playback of what?
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.
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.
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.
----------begin_max5_patcher---------- 382.3oc0T1saBBCE.95xSQSu1sveprc2dNVLKEnp0.sFnjwlQe1WOG.kYHSc YikcSI8zC87wWOzcNDVrtVTxnORelRH6bHDLDDfzNmvx40IY7RLMlpJOVTvl zrjclTkIL3ZdmBpqLcQ8aitTqLkx2EXl9261FtISyaaEMTvjJCaBkEyUqXzE sYISwhqi2bWneWw2xMIqkpUuTHRLMucj6C1clFNCJ.cpKL5aGOtQ.EJdNVL1 SERdFCVXuiCLL4eiDb+BILeN90GDFMBR3vfVv+GwBkxUJKaVQrLSyMmLQtNU zeCsIBScOtU8TUPzkUUXP.ppY+VpR7pEkNNLhZr7.1GtglHuum9Fp+IX5Uz+ DEhOBFWorzny+irh+7qnUwE+qJz6FsBlFKSpN+5VrTP7OqpRcUQRGyc8wTui UKUTZjJtQpU8RBtbjdBo0xzTAtdmNxkoa01aWZgftXvCtqkI3ZndkaXlfdsQ jI3P7xLEMpLclBFloy.+1XxNYuyG5MNyrC -----------end_max5_patcher-----------
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.