Playing a waveform
Hi, is it possible to produce a sound from a waveform? As opposed to viewing the waveform of a sound.
send this message to [waveform]: mode draw
that’s ONE way
obviously you already know how to set waveform to your own buffer?
Honestly, I don’t know much about Max/MSP, I have only used it a few times for some fairly simple things like adjusting the frequency of an oscillator. So no I don’t think I do know how to set waveform to a buffer.
Basically, I want to take a drawing of a square wave, made in AutoCAD or a similar program, (so the "waveform" would be an image), I could generate a list of the distances between each high and low peaks of the wavelength, and then "play" the waveform.
this should get you started:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 903.3oc0X0saZCCF8ZpTeG9Tzj5Mzp33j.rmgcwj1MUZaZxj3.dKwFEaJkVM d1m+g.gVBjpF0vtwA9riywmy2eIOe8UC7lJdjJ8fOCeGFL3YskAVaFKCpLLv qf7XRNQZWnGmtRL82dC2Nmh9nxZOWPRmR3y1MCeYgXoJmpr2GpxblfqjrmnV iA24WY2sV05ETGd7raF7yp4WPTIyY7Y+pjlnbKAOIVe+PjYWfXeyX.9N+82C K0BMMduEMxqNB3jB6yw6qjbhhwEvWzC1mdM7y36fu03eu9JyU8kgsluRDEET t50DFSALIrPHkro4TPIfkRJjsjmnXBtDH7TPxlwI4RyjYr7bPMmBSWlkQKgU L0bnPTRAQIjSkRnfnmVOvRH44qgaVPKyzb0MfbNYAUB2BDXp9oNktVn26BJP T1crPb.ByYbZhXI2ByviKm9mSNOhbENxJW33wVkBYErQnlDrnKMAKImk7GiT noWwJHsjrRe.AFWqE7TwpgVIa67IDEEdfjujZUu8B2woYb2QyQA13gnQlQTj kkihZhkCuzX4685PONjkCvgNGtSmf.eowDkTRZkKTVonXqCzvevuGTrBsUcD NHoIG2kJn63QDZhkHQiq4SgmzDSFzSLodalVK.6vycvat.DyHJsoNTPnKwlu KV6LEhP8D6ncXjjYzW6mYHC3SnNqvc6HKrMKk6OAMUD384IE7emmTbnKgUTa bj76IGI5SojjMmKM8wpLYSefirISBipFO5oaRWKoyHL9lyonuR4bMfYDOiF1 BsKv0MZH1LNIngS23N2gsgtxWQdftAJV+MSKfcVD9VVoMzgqp6jQmzU980aN tyYsEyIRQ4FHvuGnLzHKkssK4lnr39JyXCTlq2jctZ5dEtKtyxeloe4x2Xs3 Xa.HJH5jrXzEWsXppyiVOMgEhswlSbuM13SVNNrmb5ZjtJDoT6Kh8AQV3HbM xJ3jjEtmHKSJ+LQYQSE6hqyhIhbQo6rs+Pzb72I9QNSZu1JBD4b5v9t+E0XO N6NC5.CiXevmjvkyYGydj3l87YzK3S2iy9FSu7CfYgsYhWvxRwxxjJJo5aJA 0.dJUpUVh4y2TaU3CWzbVZJkePqRErzEBc+ExJgnYsuiwVX+fMTavVPufsf1 .sndAZ31.MTu.svKWnE2FnMpWfVqBQG2KPabaf1jKang93Sr42FrE+toMiA8 k+gvUBOU -----------end_max5_patcher-----------
oops, almost forgot, also look in Cycling74/examples/utilities/buffer-writer
this may be a dumb question, but what do I do with that text you sent? The one you said should get me started?
Thanks and I apologize for my lack of Max/MSP understanding.
select and copy all the text including the hyphens at top and bottom, then go Max/File/New From Clipboard; i think that patch, plus the buffer-writer example should get you going. Don’t forget to post your solution for everyone else (unlock your patch, select all, go Edit/Copy Compressed and paste it into your post)
So I bring that text in as "New From Clipboard" and then how do I actually use it? It seems to just be a window of text, no objects or anything.
And I will definitely post the patch I come up with if I can ever get it working.
I guess you’ve made an error, or you don’t have the latest version of Max (5); i don’t know a way round this, but here’s a screenshot of the patch above
So I recreated this code and got it working fine. Thank you! My only question now is, can I set "myShape" to be an image?
Basically I am drawing waves, both pure and complex in a program and saving them as jpegs, or really any image file, and want to encode them into an audio signal. Would I have to convert the image file to a graph somehow?
Forums > MaxMSP