<div dir="ltr">On 5 January 2017 at 17:30, IOhannes m zmoelnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="gmail-">On 2017-01-05 12:57, Esa Ruoho wrote:<br>
> i, I have an array that I'm playing at say 0.017 speed (sending 0.017 to a<br>
> phasor~ set to cycle through the 65536 -sized array. I'm hoping to find out<br>
> how to get this pitched down array content to be written to an array - so i<br>
> can then dump it to a wavefile and use it on another software. How would I<br>
> go about doing it? so far i have a solution where i have a metronome that<br>
> runs for $1 (in this case, a calculation of 65536*0.017 = 1114112) and i<br>
> toggle it "on" and when the array has been written to, i toggle it off. I<br>
> was attempting to have a delay toggle the toggle off, so the metronome<br>
> would stop counting around 1114102, but when i tried to loop this through<br>
> back into the TGL -object, Pure Data crashed fully.<br>
</span>Pd should not crash. if you experience a crash, you should post a<br>
(minimal) patch that exposes the problem, so it can be fixed.<br></blockquote><div><br></div><div>well, it became unresponsive. but this i think was because i had a toggle going into a bang, which was sending to a delay, which was trying to untoggle the toggle, which would then send out a bang. so it was my fault really, endless feedback loops causing unresponsiveness and then me not being able to remove a specific segment of it to stop it from feedbacking/being unresponsive. so no point really trying to fix, right? :)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">anyhow, [phasor~] and [metro] both repeat, so they seem to be the wrong<br>
choices for a one-shot operation, instead of [line~] and [delay].<br>
<br>
also i don't understand why you would want to dump the array into<br>
another array in order to record it. sending the audio to a [writesf~]<br>
directly should be enough.<br></blockquote><div><br></div><div>Thing is, the array (let's call it plom) is played at like 0.0017 speed or more, so to capture what "plom" sounds like when pitched down, i thought i'd have to write it into an array, and save that array safely. maybe i've misunderstood, but i was able to then capture it  into an array and write that array. i was just hoping to do it in a snappier way rather than having to have a metro toggled on, until it felt like the array was full, and then stop the metronome, and then manually tap on save-sample.</div><div><br></div><div>so far i'm quite happy with how the script goes, it's very simplistic, just two oscillators, a delay, a method of sampling the oscillators+delay result into an array (plom), then a midicontroller knob to control the playback of the array (plom) between -2 and 2. now i'm just trying to get the happy accidents (plom pitched down) into a randomly named filename (or maybe a date/time named filename) so that i can retain them, instead of losing them everytime pure data is booted.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[bang(<br>
|<br>
[array size foo]<br>
|<br>
[t f f  b]<br>
|    |   |<br>
|    |   [samplerate~]<br>
|    [/  ]<br>
|    [* 1000]<br>
|    [/ 0.<a href="tel:01666666" value="+3581666666">01666666</a>]<br>
|    |<br>
[pack]<br>
|<br>
[t l                   b        l]<br>
|                      |         [$2(<br>
[0, $1 $2(             [start(   [delay]<br>
|                      |         [stop(<br>
[line~]                | +-------+<br>
|                      |/<br>
[tabread4~ foo]        [t a]<br>
|                     /<br>
| +------------------+<br>
|/<br>
[writesf~]<br></blockquote><div><br></div><div>after numerous mistakes, i was able to (i think) get this to work somehow. i'm not sure if foo = plom, but i put tabread4~ and array size as plom (as that's the original material). i am able to now feed the phasor~ playback speed into the [/ 0.016666] -2nd port, and if i tap on start, and wait a while and tap on stop, i get a type of sound. it's not in the same pitch as what i'm hearing, so what i hear isn't quite what i get, but it's definitely a step in the right direction. i took a screenshot of what i ended up with, if that helps.</div><div><a href="http://imgur.com/a/Gu6bz">http://imgur.com/a/Gu6bz</a><br></div><div><br></div><div>i'm kind of halfway there, thanks to you! all i gotta do is get it to actually be at the same pitch and work, and figure out if i should just keep with 0.01666666 that you suggested, or have that be changed by the playback speed (that i'm using to feed to phasor~.. </div><div><br></div><div>and the 2nd step is to get the date-time writing to the filename and somehow stash the long-ish path somewhere. phew.</div><div>i never thought i'd get this far!</div></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>---</div><div><a href="http://twitter.com/esaruoho" target="_blank">http://twitter.com/esaruoho</a> // <a href="http://lackluster.bandcamp.com" style="font-size:12.8px" target="_blank">http://lackluster.bandcamp.com</a> // <span style="font-size:12.8px">+358403703659 // </span></div><div><span style="font-size:12.8px">skype:esajuhaniruoho // <a href="http://esaruoho.tumblr.com/" target="_blank">http://esaruoho.tumblr.com/</a> // iMessage: <a href="mailto:esaruoho@gmail.com" target="_blank">esaruoho@gmail.com</a> //</span></div></div></div></div></div></div></div>
</div></div>