hi filippo - this may be a bit too quick and dirty as we like to say, but i remember the guy mike moser (maelstorm) of the PD forum. he made a preset management abstraction called <a href="http://save.me">save.me</a>. here's the link to all of his objects in github:<div>
<br></div><div><a href="https://github.com/dotmmb/mmb">https://github.com/dotmmb/mmb</a></div><div><br></div><div>and here's another one storing into a text file.</div><div><br></div><div><a href="http://puredata.hurleur.com/sujet-6810-simple-preset-manager">http://puredata.hurleur.com/sujet-6810-simple-preset-manager</a></div>
<div><br></div><div>hope it helps,</div><div><br></div><div>scott</div><div><br><br><div class="gmail_quote">On Tue, Sep 11, 2012 at 9:59 AM, Pierre Massat <span dir="ltr"><<a href="mailto:pimassat@gmail.com" target="_blank">pimassat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I worked on a drum machine a while ago. I used textfiles to save and read patterns, using the [textfile] object.<br>
<br>Cheers,<br><br>Pierre.<br><br><div class="gmail_quote"><div><div class="h5">2012/9/11 Filippo Beck Peccoz <span dir="ltr"><<a href="mailto:mail@fbpsound.com" target="_blank">mail@fbpsound.com</a>></span><br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="word-wrap:break-word">Hello list!<div><br></div><div>I'm working on a drum machine to be used in a mobile game- it's a trading card game.</div>
<div>Right now, I have a 64 step grid with 5 instruments ready (although a tad messy :D) and I can manually write patterns in by hand using toggle boxes.</div><div><br></div><div>In every turn, the game features many different game states, like deck building, defense, attack and so on. It would be great to have a drum machine that can change beat patterns based on those states, and maybe generate fresh patterns in a controlled way. Two different problems, I know, but I was wondering first of all how you would solve the saving of patterns inside the instrument.</div>
<div><br></div><div>I would basically create arrays with patterns in them, name them appropriately and then tell PD when to change to specific patterns via message. Is there a better way I'm missing?</div><div><br></div>
<div><br></div><div>The idea is to create a very dynamic drumsound, which is closely related to what's happening on screen. We can already change the tempo and mix sounds in and out, but the real fun starts when patterns will become more flexible!</div>
<div><br></div><div>Thanks for reading, any advice is greatly appreciated!</div><div><br></div><div><br></div><div>Cheers from Munich,</div><div><br></div><div>Filippo</div><span><font color="#888888"><div>
<br></div><div><br></div><div><br></div><div><br></div><div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div><div style="word-wrap:break-word">Filippo Beck Peccoz<br>Game Audio<br></div><div style="word-wrap:break-word"><div><a href="http://www.fbpsound.com" target="_blank">www.fbpsound.com</a></div><div>Twitter: <a href="http://twitter.com/fbpsound" target="_blank">@fbpsound</a></div>
<div>Skype: fbpsound</div><div>Mobile: <a href="tel:%2B49-%280%291520-4004143" value="+4915204004143" target="_blank">+49-(0)1520-4004143</a></div></div></div></div></span></div></span></div></span></span>
</div>
<br></div></font></span></div><br></div></div>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>