Scaling MIDI input to sample speed using the groove~ object
Hi, I'm working on something right now which requires MIDI input to be scaled to sample playback speed, whereby middle C is equal to 1. in the groove~ object, i.e. normal playback. I'll need this to scale up and down so 1 octave up from middle C the sample plays back at 2 times normal speed, an octave down it'll play at half speed etc...
Now, I looked into using the MIDI note scaled directly but as the frequencies used to correctly produce the 12 notes of standard notation do not fall at exact 12ths this does not work correctly.
I think what I need to do is scale the output of the mtof object to ensure my tuning is correct but the maths to make this happen is beyond me.
AmI making things difficult for myself here and totally over looking a simple way to do this?
Any help would be greatly appreciated!
Try this, it's not very elegant but I think it does the job.
Ben Kei schrieb:
> Am I making things difficult for myself here and totally over looking
> a simple way to do this?
2 ways, if you them with the mtof help file, you'll even understand the
maths behind it... ;-):
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com
Eric schrieb:
> Try this, it's not very elegant but I think it does the job.
No, if you listen to the results (I didn't ;-)...
Each octave is mapped linear, that creates intervals of different sizes.
An interval is a ratio...
But you could become famous in the new music establishment if you
declare this as the base for a new scale and write a complicated
orchestra piece based on it. The musicians will hate you, the audience
will hate you but the critics will love you, because they don't get the
joke... ;-)
Stefan
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com
Hahaha!
Of course... I shouldn't venture in unknown mathematical territory at 3am.
Like your idea about the piece though, Would be a bit like Perec's "la Disparition" where critics didn't realize the letter E was missing throughout the book.
Thanks for the replies!
I'm at work right now so I can't check what you've posted but I will this evening.
Many thanks,
Ben