need help with timing problem
ok, first off let me thank this community for existing, for without i would be up the creek without a paddle :)
to the problem, im putting together a project which will house sample banks of multiple samples, these are to be triggered by user interaction with kinect via max.
for the purposes of the sample banks, ive put together a patch housing the samples in polybuffer~, with play~ used for individual playback. what id like to know, is there a way to sync the play~ objects to the main transport tempo, allowing for realistic tempo control/manipulation on the various samples. i already found a tutorial online which achieved synchronization between samples, taking the sample lengths and transposing the samples in sync. ive posted the patch below, is there a way to sync directly to the tempo of global transport and in turn alter the samples or should i be looking more towards timestretching?
i have posted two examples, one using phasor and the other with groove syncing to wave
any help would be grateful, i know how basic this must be, but its puzzling me :)
thanks in advance and keep up the good work
anyone got any notion? or can point me in the right direction please?
before I/we look at your patches, can I ask you to clarify some points please? Are your samples all rhythmic and tempo specific? Is pitch/key and pulse important? If key/pulse is important then you will have to look at quite complex timestretching and transient/beat detection, a la REX format. If key/pulse is NOT relevant, then things are a lot easier. Do you know the original bpm of your files? The formulas, if I’m not mistaken, are simple if you do:
bpm to ms = 60000/bpm, and ms to freq (for driving the play object eg) = 1000/ms. But this is also dependent upon the length of your files, which is no indicator of either tempo or rhythm.
In the meantime, search this forum for "transport", "tempo", "tempo sync" etc….
haven’t looked at your patches yet :( but I threw this together from the [transport] helpfile
----------begin_max5_patcher---------- 994.3ocyYsrbaBCEcsyL4ePkkcbczCD1zEcZWzo+.c5lNY5HCxNzZjHfXpSx z7sWLBaieKisfrAEDxv4btWcen7xs2zyYrbNOyA7QvOA858RwL8JmawL8VNQ OmX17fYrrxE5DHii4BkS+pGp3yUkOHlqRkfrmDA7PfRB91L4X1rUqSjGGIlw UkuEzxYmHEprnm4kShF.qsZYtZ4xWMcBSE7PjX5uR4AJMtoinE+LfObwUj6n EC3ha.2W+aHXwkeCmevSCYB1JXEEVNsb7u+fKwobx+c6MKFKF5arpjEHS3ut exhOAoFmOYoD3gOBSItkL0kTNfHvUCq4Z.aVPfLWn17sUmkvlyxCZ6kBNXLK 09Fa2RR65WJAdvlarI9MWFFmqTRwIH6ljBcDRUwlpABY400jR+hTOkv0+Bmw LwTm0OuNuvMmWB9eKdE6Zc4gSOju8YZawFHCdUC6Za2uLzeG4vXe.30Wq9zq .3.e+SDIvL0xDmFcv.5PCTqrnohh.xmuNguf8J7mCYAMLv39hAhzzdqq6cq. dz027l7.KSl9ZqYdgsg4c30Wmd2c.DDBGzVBEQmKfZRTiIyjLUSzIOKj4LNC DlmxTQRAPNA7XpJEHjJ9pUNKRvWkQGa6DrU5HVWT0n8jKxX0hZe0Z6xNZWsh R0td5PRCGcAZkqEzpwblJCjvS6PIxCpcmzksQcu.IhXCIJI15krVU0dkDnSW 2rRVwXaT4dBW.95bUJK6NcGafumxDYIxTk00FWJbcdbzvgWf1bAkxEyyxXS4 6pM3hLXVOAFEocLzsyoEDznil.qA4tPVnVn22VI2qxFQvCnmL4djnIo1QdWe 4IWjvB9CHBDY8Vmn35wX7bMnHnE5T+FKWTKrai1Ba1pZWpxgxZa1vVof5hjo sgD4U2Wh5anuTCToKHjsRNc5L906DXf05mjr5pwTtFqrPuT5CV0U.97i4Lgp v5VdCKWIyTrTE.U6FUTLGTquKCp26PNOTeJZzvFqlUmH6Pz4edVa3B8kznZG i7FQg7d6bFdZNiv5t.PKu1ryvyyBgWQ3Vnabh+F06ao3qjq+dL0wq48LkHeC 7TzgYQT34krt+xyuXu+w9VUSBMus.qeEkAS19eWTIEW7fsj8LYdZvRBTcLS8 A0XYHOSEIJ6ku1pbgatpGhBC4hMZjHNJLQVvxJj.t+vdCFCNBzDvQvcB3v9F AttQ4LyrtMEZKv4YD3F1IfCYF37dCCth1JKhg09fiZD375FvAMFbcfYs3qRO I1ncC1LS3vciUs3q5dRrA6Li5IwFoSjMiRNrnP9NIouYw35FaJ0HvQtbkawD EC+Gf61+PA -----------end_max5_patcher-----------
hey brendan, thanks very much for your reply. for the finished patch there will be 4 banks of sound, the samples of one of these will be aesthetic so not really rhythmic or pitch specific. the other banks will be rhythmic and their pitch will be very important as they will be compositions to play in harmony with midi generated shenanigans within the patch.
so far all the samples being composed are in the same tempo (100bpm), they will range from 1 bar samples to possibly 8. i had the bpm to ms conversion but not the ms to freq, thanks for that :)
ill try that with play~
i was thinking alright some form of rex slicing was needed to perform realistic tempo changes
might be useful to you
awesome sauce m8 :)
Forums > MaxMSP