[PD] Controlling / looping a list of audio files loaded in by reading a text file.
Greetings All I'm trying to control how a text file with a list of audio files in it are read/played. Example: I have a text file which is read and plays several audio files one right after the other till the end. I would like to have it read/play the text file list in reverse, forward, or loop play on the current file. So if I have a text file with. one.wav, two.wav three.wave When a button is clicked for Forward it reads the text file and plays the audio files like: one.wav two.wav three.wav When a button is clicked for Reverse it reads the text file and plays the audio files like: three.wav two.wav one.wav When a button is clicked for Loop it reads the text file and plays the audio files like: one.wav two.wav two.wav two.wav until I cancel the loop or hit another button to go forward or reverse I've gotten the buttons to work as a selection but I'm having issues in getting the text list to change directions and loop. I was thinking of using a list to read in all the lines in the text file but I wasn't sure how to get the list to read/play in the forward, reverse, and loop options. Is their another way I should be trying to do this? I've attached what I have so far. Thanks read_play_playlist_export_txt.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Controlling / looping a list of audio files loaded in by reading a text file.
Thanks I went to http://puredata.info/downloads/zexy to pull out the l2s.pd files to use and I couldn't find the pd files. Do they go by another name? The reason for this is I only want to have the PD patches I'm really using on the system. Thanks On Wed, Feb 27, 2013 at 1:34 AM, James Dunn ja...@4thharmonic.com wrote: Quoth Rick T, on 27/02/2013 09:04: Greetings All I'm trying to control how a text file with a list of audio files in it are read/played. Example: I have a text file which is read and plays several audio files one right after the other till the end. I would like to have it read/play the text file list in reverse, forward, or loop play on the current file. So if I have a text file with. one.wav, two.wav three.wave When a button is clicked for Forward it reads the text file and plays the audio files like: one.wav two.wav three.wav When a button is clicked for Reverse it reads the text file and plays the audio files like: three.wav two.wav one.wav When a button is clicked for Loop it reads the text file and plays the audio files like: one.wav two.wav two.wav two.wav until I cancel the loop or hit another button to go forward or reverse I've gotten the buttons to work as a selection but I'm having issues in getting the text list to change directions and loop. I was thinking of using a list to read in all the lines in the text file but I wasn't sure how to get the list to read/play in the forward, reverse, and loop options. Is their another way I should be trying to do this? I've attached what I have so far. Thanks To loop the current file you need to know where in the playlist you are. [textfile] doesn't really have this information ( [msgfile] in zexy does though so you might want to look at that ). Or you can make a counter to keep track of where you are so you can then loop the track, or reverse the playback. See attached patch. James ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Controlling / looping a list of audio files loaded in by reading a text file.
Thanks that works great On Wed, Feb 27, 2013 at 5:27 AM, James Dunn ja...@4thharmonic.com wrote: Quoth Rick T, on 27/02/2013 15:13: Thanks I went to http://puredata.info/downloads/zexy to pull out the l2s.pd files to use and I couldn't find the pd files. Do they go by another name? The reason for this is I only want to have the PD patches I'm really using on the system. Thanks Just change [l2s] to [symbol] if you don't want to use zexy. It does a similar thing but I had filenames with spaces in my playlist so that's why I used it. James ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using puredata to play playlist gapless
Thanks so much for the help it worked On Tue, Feb 19, 2013 at 11:11 PM, Roman Haefeli reduz...@gmail.com wrote: On Tue, 2013-02-19 at 20:57 -1000, Rick T wrote: Yes I have tried giving textfile a bang. Still no sound I'm not sure what you mean by the second response since I get sound when I click on the message with the single wav file hard coded in the message box. I don't get sound when I load a playlist text file. Ok. [textfile] does not prepend any selector to its output. I simply outputs 'filename.wav', but the messagebox [open $1, 1( expects a 'symbol filename.wav' message. Insert a an object [symbol] between [textfile] and [open $1, 1(. I made a little sketch (see attachment) which turns out to almost identical to your version. Roman On Tue, Feb 19, 2013 at 6:22 PM, Dafydd Hughes dafyd...@gmail.com wrote: Have you nitride giving textile a bang after opening the file? Also, the test message should be connected straight to readsf~, not to the message - you should hear the file played then. On Tuesday, February 19, 2013, Rick T wrote: Ok I'm still having issues I uploaded an image of the PD to see if someone spots something off the bat http://imageshack.us/photo/my-images/12/selection007p.png/ and I've attached a text file with the debugging stuff included I can hear the sound when I click on the [open /tmp/test/n41test.wav( message box But I get no sound using the open panel to load the textfile I've also attached the negplaylist.txt file and renamed everything in-case I had some strange control character hiding in the file. When I bang the [openpanel] object and clink on the [print( message box above the [textfile] I get this in the PD log - textfile or qlist contents: --- n41test.wav \; \; n42test.wav \; \; n43test.wav \; \; n44test.wav \; \; n45test.wav \; \; n46test.wav \; \; n47test.wav \; \; n48test.wav \; \; n49test.wav \; \; n50test.wav \; \; Still trying to figure out why this won't play the files. On Tue, Feb 19, 2013 at 4:15 PM, Dafydd Hughes dafyd...@gmail.com wrote: Oh silly me. You need to look at the syntax for using readsf~ - it's more complicated. First, readsf~ needs an open message e.g. open 001test.wav, then it needs a 1 to start playback. Forgive me if you already know this, but you can string 2 messages together with a comma. And to get the filename from textfile into a message like that, you need to use $1 as a placeholder. So between textfile and readsf~ you need a message saying something like open $1, 1. That'll turn into 2 messages: open 001test.wav and then 1. If the files are in the same directory as the patch, it should work (I think). Cheers Dafydd On Tue, Feb 19, 2013 at 9:06 PM, Rick T ratull...@gmail.com wrote: I had my hopes up but adding the semicolon to the end didn't help. I have all the files in the same directory and for whatever reason it just refuses to play. I don't even have any errors on the Puredata Log screen. Any other ideas? Thanks On Tue, Feb 19, 2013 at 3:28 PM, Dafydd Hughes dafyd...@gmail.com wrote: Hi Rick I think you might need a semicolon at the end of each line in your text file: 001test.wav; 002test.wav; 003test.wav; Cheers Dafydd On Tue, Feb 19, 2013 at 8:22 PM, Rick T ratull...@gmail.com wrote: Thanks for all the help/suggestions but I still seem to be running into a problem of it not playing the files. I made the changes to playlist file and edited the playlist.txt file the playlist.txt file has 001test.wav 002test.wav 003test.wav I've included the the pd patch to see if someone can tell me what I'm doing wrong Thanks. On Tue, Feb 19, 2013 at 12:08 PM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 07:47 -1000, Rick T wrote: Yes I do have the ability to change the playlist file to a text file and alter it how it looks. The thing I'm looking for is an example of gapless playing. I couldn't find one doing google search. You load your playlist (in its most simple form it would be just one filename per line) with [textfile]. You make [textfile] output its first line, feed that to [readsf~]. Then you feed the right outlet of [readsf~] - which bangs when the file is finished - back to [textfile] to make it output the next filename. Roman On Tue, Feb 19, 2013 at 12:53 AM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 00:31 -1000, Rick T wrote: Greetings All I have a playlist file (songs.pls) that I would like to play gapless (without the 1
[PD] using puredata to play playlist gapless
Greetings All I have a playlist file (songs.pls) that I would like to play gapless (without the 1 second pause between tracks) can puredata due this if so is there and example? Example of what's in my songs.pls file below please note I will have 1000's of 1 second audio files that I would like to play gapless/seamless and without a pause [playlist] NumberOfEntries=3 File01=01test.wav Title01=01test.wav File02=02test.wav Title02=02test.wav File03=03test.wav Title03=03test.wav Version=2 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using puredata to play playlist gapless
Yes I do have the ability to change the playlist file to a text file and alter it how it looks. The thing I'm looking for is an example of gapless playing. I couldn't find one doing google search. Thanks On Tue, Feb 19, 2013 at 12:53 AM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 00:31 -1000, Rick T wrote: Greetings All I have a playlist file (songs.pls) that I would like to play gapless (without the 1 second pause between tracks) can puredata due this if so is there and example? It sounds doable to me. I'd do it with [textfile] reading your playlist which passes each line (after some message mangling) to a [readsf~]. My only concern is the chosen file format '.pls'. Pd (natively) is pretty bad in string parsing. If you could use your own format it would make things a lot easier. I don't know if you have any constraints there. The simplest format of such a text file might be as an example: filename1.wav filename2.wav whateverfile.wav Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using puredata to play playlist gapless
Thanks for all the help/suggestions but I still seem to be running into a problem of it not playing the files. I made the changes to playlist file and edited the playlist.txt file the playlist.txt file has 001test.wav 002test.wav 003test.wav I've included the the pd patch to see if someone can tell me what I'm doing wrong Thanks. On Tue, Feb 19, 2013 at 12:08 PM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 07:47 -1000, Rick T wrote: Yes I do have the ability to change the playlist file to a text file and alter it how it looks. The thing I'm looking for is an example of gapless playing. I couldn't find one doing google search. You load your playlist (in its most simple form it would be just one filename per line) with [textfile]. You make [textfile] output its first line, feed that to [readsf~]. Then you feed the right outlet of [readsf~] - which bangs when the file is finished - back to [textfile] to make it output the next filename. Roman On Tue, Feb 19, 2013 at 12:53 AM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 00:31 -1000, Rick T wrote: Greetings All I have a playlist file (songs.pls) that I would like to play gapless (without the 1 second pause between tracks) can puredata due this if so is there and example? It sounds doable to me. I'd do it with [textfile] reading your playlist which passes each line (after some message mangling) to a [readsf~]. My only concern is the chosen file format '.pls'. Pd (natively) is pretty bad in string parsing. If you could use your own format it would make things a lot easier. I don't know if you have any constraints there. The simplest format of such a text file might be as an example: filename1.wav filename2.wav whateverfile.wav Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list read_play_playlist.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using puredata to play playlist gapless
I had my hopes up but adding the semicolon to the end didn't help. I have all the files in the same directory and for whatever reason it just refuses to play. I don't even have any errors on the Puredata Log screen. Any other ideas? Thanks On Tue, Feb 19, 2013 at 3:28 PM, Dafydd Hughes dafyd...@gmail.com wrote: Hi Rick I think you might need a semicolon at the end of each line in your text file: 001test.wav; 002test.wav; 003test.wav; Cheers Dafydd On Tue, Feb 19, 2013 at 8:22 PM, Rick T ratull...@gmail.com wrote: Thanks for all the help/suggestions but I still seem to be running into a problem of it not playing the files. I made the changes to playlist file and edited the playlist.txt file the playlist.txt file has 001test.wav 002test.wav 003test.wav I've included the the pd patch to see if someone can tell me what I'm doing wrong Thanks. On Tue, Feb 19, 2013 at 12:08 PM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 07:47 -1000, Rick T wrote: Yes I do have the ability to change the playlist file to a text file and alter it how it looks. The thing I'm looking for is an example of gapless playing. I couldn't find one doing google search. You load your playlist (in its most simple form it would be just one filename per line) with [textfile]. You make [textfile] output its first line, feed that to [readsf~]. Then you feed the right outlet of [readsf~] - which bangs when the file is finished - back to [textfile] to make it output the next filename. Roman On Tue, Feb 19, 2013 at 12:53 AM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 00:31 -1000, Rick T wrote: Greetings All I have a playlist file (songs.pls) that I would like to play gapless (without the 1 second pause between tracks) can puredata due this if so is there and example? It sounds doable to me. I'd do it with [textfile] reading your playlist which passes each line (after some message mangling) to a [readsf~]. My only concern is the chosen file format '.pls'. Pd (natively) is pretty bad in string parsing. If you could use your own format it would make things a lot easier. I don't know if you have any constraints there. The simplest format of such a text file might be as an example: filename1.wav filename2.wav whateverfile.wav Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] using puredata to play playlist gapless
Ok I'm still having issues I uploaded an image of the PD to see if someone spots something off the bat http://imageshack.us/photo/my-images/12/selection007p.png/ and I've attached a text file with the debugging stuff included I can hear the sound when I click on the [open /tmp/test/n41test.wav( message box But I get no sound using the open panel to load the textfile I've also attached the negplaylist.txt file and renamed everything in-case I had some strange control character hiding in the file. When I bang the [openpanel] object and clink on the [print( message box above the [textfile] I get this in the PD log - textfile or qlist contents: --- n41test.wav \; \; n42test.wav \; \; n43test.wav \; \; n44test.wav \; \; n45test.wav \; \; n46test.wav \; \; n47test.wav \; \; n48test.wav \; \; n49test.wav \; \; n50test.wav \; \; Still trying to figure out why this won't play the files. On Tue, Feb 19, 2013 at 4:15 PM, Dafydd Hughes dafyd...@gmail.com wrote: Oh silly me. You need to look at the syntax for using readsf~ - it's more complicated. First, readsf~ needs an open message e.g. open 001test.wav, then it needs a 1 to start playback. Forgive me if you already know this, but you can string 2 messages together with a comma. And to get the filename from textfile into a message like that, you need to use $1 as a placeholder. So between textfile and readsf~ you need a message saying something like open $1, 1. That'll turn into 2 messages: open 001test.wav and then 1. If the files are in the same directory as the patch, it should work (I think). Cheers Dafydd On Tue, Feb 19, 2013 at 9:06 PM, Rick T ratull...@gmail.com wrote: I had my hopes up but adding the semicolon to the end didn't help. I have all the files in the same directory and for whatever reason it just refuses to play. I don't even have any errors on the Puredata Log screen. Any other ideas? Thanks On Tue, Feb 19, 2013 at 3:28 PM, Dafydd Hughes dafyd...@gmail.com wrote: Hi Rick I think you might need a semicolon at the end of each line in your text file: 001test.wav; 002test.wav; 003test.wav; Cheers Dafydd On Tue, Feb 19, 2013 at 8:22 PM, Rick T ratull...@gmail.com wrote: Thanks for all the help/suggestions but I still seem to be running into a problem of it not playing the files. I made the changes to playlist file and edited the playlist.txt file the playlist.txt file has 001test.wav 002test.wav 003test.wav I've included the the pd patch to see if someone can tell me what I'm doing wrong Thanks. On Tue, Feb 19, 2013 at 12:08 PM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 07:47 -1000, Rick T wrote: Yes I do have the ability to change the playlist file to a text file and alter it how it looks. The thing I'm looking for is an example of gapless playing. I couldn't find one doing google search. You load your playlist (in its most simple form it would be just one filename per line) with [textfile]. You make [textfile] output its first line, feed that to [readsf~]. Then you feed the right outlet of [readsf~] - which bangs when the file is finished - back to [textfile] to make it output the next filename. Roman On Tue, Feb 19, 2013 at 12:53 AM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 00:31 -1000, Rick T wrote: Greetings All I have a playlist file (songs.pls) that I would like to play gapless (without the 1 second pause between tracks) can puredata due this if so is there and example? It sounds doable to me. I'd do it with [textfile] reading your playlist which passes each line (after some message mangling) to a [readsf~]. My only concern is the chosen file format '.pls'. Pd (natively) is pretty bad in string parsing. If you could use your own format it would make things a lot easier. I don't know if you have any constraints there. The simplest format of such a text file might be as an example: filename1.wav filename2.wav whateverfile.wav Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list n41test.wav; n42test.wav; n43test.wav; n44test.wav; n45test.wav; n46test.wav; n47test.wav; n48test.wav; n49test.wav; n50test.wav; read_play_playlist.pd Description
Re: [PD] using puredata to play playlist gapless
Yes I have tried giving textfile a bang. Still no sound I'm not sure what you mean by the second response since I get sound when I click on the message with the single wav file hard coded in the message box. I don't get sound when I load a playlist text file. Thanks On Tue, Feb 19, 2013 at 6:22 PM, Dafydd Hughes dafyd...@gmail.com wrote: Have you nitride giving textile a bang after opening the file? Also, the test message should be connected straight to readsf~, not to the message - you should hear the file played then. On Tuesday, February 19, 2013, Rick T wrote: Ok I'm still having issues I uploaded an image of the PD to see if someone spots something off the bat http://imageshack.us/photo/my-images/12/selection007p.png/ and I've attached a text file with the debugging stuff included I can hear the sound when I click on the [open /tmp/test/n41test.wav( message box But I get no sound using the open panel to load the textfile I've also attached the negplaylist.txt file and renamed everything in-case I had some strange control character hiding in the file. When I bang the [openpanel] object and clink on the [print( message box above the [textfile] I get this in the PD log - textfile or qlist contents: --- n41test.wav \; \; n42test.wav \; \; n43test.wav \; \; n44test.wav \; \; n45test.wav \; \; n46test.wav \; \; n47test.wav \; \; n48test.wav \; \; n49test.wav \; \; n50test.wav \; \; Still trying to figure out why this won't play the files. On Tue, Feb 19, 2013 at 4:15 PM, Dafydd Hughes dafyd...@gmail.com wrote: Oh silly me. You need to look at the syntax for using readsf~ - it's more complicated. First, readsf~ needs an open message e.g. open 001test.wav, then it needs a 1 to start playback. Forgive me if you already know this, but you can string 2 messages together with a comma. And to get the filename from textfile into a message like that, you need to use $1 as a placeholder. So between textfile and readsf~ you need a message saying something like open $1, 1. That'll turn into 2 messages: open 001test.wav and then 1. If the files are in the same directory as the patch, it should work (I think). Cheers Dafydd On Tue, Feb 19, 2013 at 9:06 PM, Rick T ratull...@gmail.com wrote: I had my hopes up but adding the semicolon to the end didn't help. I have all the files in the same directory and for whatever reason it just refuses to play. I don't even have any errors on the Puredata Log screen. Any other ideas? Thanks On Tue, Feb 19, 2013 at 3:28 PM, Dafydd Hughes dafyd...@gmail.com wrote: Hi Rick I think you might need a semicolon at the end of each line in your text file: 001test.wav; 002test.wav; 003test.wav; Cheers Dafydd On Tue, Feb 19, 2013 at 8:22 PM, Rick T ratull...@gmail.com wrote: Thanks for all the help/suggestions but I still seem to be running into a problem of it not playing the files. I made the changes to playlist file and edited the playlist.txt file the playlist.txt file has 001test.wav 002test.wav 003test.wav I've included the the pd patch to see if someone can tell me what I'm doing wrong Thanks. On Tue, Feb 19, 2013 at 12:08 PM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 07:47 -1000, Rick T wrote: Yes I do have the ability to change the playlist file to a text file and alter it how it looks. The thing I'm looking for is an example of gapless playing. I couldn't find one doing google search. You load your playlist (in its most simple form it would be just one filename per line) with [textfile]. You make [textfile] output its first line, feed that to [readsf~]. Then you feed the right outlet of [readsf~] - which bangs when the file is finished - back to [textfile] to make it output the next filename. Roman On Tue, Feb 19, 2013 at 12:53 AM, Roman Haefeli reduz...@gmail.com wrote: On Die, 2013-02-19 at 00:31 -1000, Rick T wrote: Greetings All I have a playlist file (songs.pls) that I would like to play gapless (without the 1 second pause between tracks) can puredata due this if so is there and example? ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] .43.4 and ubuntu 10.04 error / wont launch gui
Greetings All I just installed puredata .43.4 ppa onto ubuntu 10.04 and I get this error and it won't launch the gui PUREDATA selection doesn't exist or form STRING not defined PUREDATA selection doesn't exist or form STRING not defined while executing selection get -selection PUREDATA (procedure first_lost line 2) invoked from within first_lost Any idea how to fix this? the ppa link is http://ppa.launchpad.net/eighthave/pd-extended/ubuntu Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] .43.4 and ubuntu 10.04 error / wont launch gui
Here's what comes back with no GUI vmpd@vmpd-desktop:~$ pd-extended priority 6 scheduling enabled. priority 8 scheduling enabled. jackd 0.118.0 Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others. jackd comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Memory locking is unlimited - this is dangerous. You should probably alter the line: @audio - memlockunlimited in your /etc/limits.conf to read: @audio - memlock2273067 no message buffer overruns JACK compiled with System V SHM support. loading driver .. SSE2 detected apparent rate = 44100 creating alsa driver ... hw:0|hw:0|2048|3|44100|0|0|nomon|swmeter|soft-mode|32bit control device hw:0 ^CPd: signal 2 vmpd@vmpd-desktop:~$ One thing I noticed is that the limits.conf for 10.04 is located in etc/security/ but the message is tell me to change the file in etc/ Thanks Rick On Wed, Jan 9, 2013 at 9:55 AM, Hans-Christoph Steiner h...@at.or.at wrote: Hey Rick, How are you launching Pd? Via the menu? Could you try in the Terminal: pd-extended .hc On 01/09/2013 02:30 PM, Rick T wrote: Greetings All I just installed puredata .43.4 ppa onto ubuntu 10.04 and I get this error and it won't launch the gui PUREDATA selection doesn't exist or form STRING not defined PUREDATA selection doesn't exist or form STRING not defined while executing selection get -selection PUREDATA (procedure first_lost line 2) invoked from within first_lost Any idea how to fix this? the ppa link is http://ppa.launchpad.net/eighthave/pd-extended/ubuntu Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] .43.4 and ubuntu 10.04 error / wont launch gui
On Wed, Jan 9, 2013 at 1:31 PM, IOhannes m zmölnig zmoel...@iem.at wrote: On 01/10/2013 00:13, Rick T wrote: Here's what comes back with no GUI vmpd@vmpd-desktop:~$ pd-extended priority 6 scheduling enabled. priority 8 scheduling enabled. jackd 0.118.0 could you try starting PdX without jack? something like: $ pd-extended -alsa ok this didn't work no gui and no error message or even $ pd-extended -nosound The gui did come back this is what was in the terminal window vmpd@vmpd-desktop:~$ pd-extended -nosound priority 6 scheduling enabled. priority 8 scheduling enabled. open: /etc/pd/gem.conf: No such file or directory open: /home/vmpd/.pd/gem.conf: No such file or directory open: ./gem.conf: No such file or directory And this is what was in the gui window WARNING: 64-bit builds are still beta, some libraries are known to have serious issues (cyclone, maxlib, moonlib, moocow, pdp, bsaylor, etc. flatspace: can't load library memento: can't load library rradical: can't load library pixeltango: can't load library toxy: can't load library flib: can't load library pidip: can't load library One thing I noticed is that the limits.conf for 10.04 is located in etc/security/ but the message is telling me to change the file in etc/ this is unrelated. various distributions put those files in different places (though it seems that at least on debian derivatives there is a consensus to use directories for configurations where potentially multiple agents (sysadmins as well as packages) want to add/remove their little bits), and nobody cared to modify the jack sources for your distribution to print out the correct filename. nevertheless, you probably should change your limits according to the suggestion you got. PUREDATA selection doesn't exist or form STRING not defined PUREDATA selection doesn't exist or form STRING not defined while executing selection get -selection PUREDATA (procedure first_lost line 2) invoked from within first_lost does this also happen with Pd-0.44 (e.g. from git)? I haven't tried .44 as of yet only the .43.4 version thanks fgmadsr IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] .43.4 and ubuntu 10.04 error / wont launch gui
Thanks That fixed it On Wed, Jan 9, 2013 at 2:17 PM, Hans-Christoph Steiner h...@at.or.at wrote: On 01/09/2013 06:44 PM, Rick T wrote: On Wed, Jan 9, 2013 at 1:31 PM, IOhannes m zmölnig zmoel...@iem.at wrote: On 01/10/2013 00:13, Rick T wrote: Here's what comes back with no GUI vmpd@vmpd-desktop:~$ pd-extended priority 6 scheduling enabled. priority 8 scheduling enabled. jackd 0.118.0 could you try starting PdX without jack? something like: $ pd-extended -alsa ok this didn't work no gui and no error message or even $ pd-extended -nosound The gui did come back this is what was in the terminal window vmpd@vmpd-desktop:~$ pd-extended -nosound priority 6 scheduling enabled. priority 8 scheduling enabled. open: /etc/pd/gem.conf: No such file or directory open: /home/vmpd/.pd/gem.conf: No such file or directory open: ./gem.conf: No such file or directory And this is what was in the gui window Ah, I see. So the issue is actually with your connection to Jack. Pd-extended started, but got hung up somehow on Jack. You can kill any old instances in the Terminal using 'killall pd'. There is a new singleton mode where the first instance of Pd claims the PUREDATA X11 selection, and new instances talk to the first one via the PUREDATA X11 selection. So my guess is then you probably tried starting Pd-extended again from the menu, and the singleton was claimed by the first instance but it hadn't claimed the PUREDATA selection. Therefore the new instance got confused and gave you that error. WARNING: 64-bit builds are still beta, some libraries are known to have serious issues (cyclone, maxlib, moonlib, moocow, pdp, bsaylor, etc. That's a new warning added to point out a long standing condition. Those libraries have objects that never worked properly on 64-bit. flatspace: can't load library memento: can't load library rradical: can't load library pixeltango: can't load library toxy: can't load library flib: can't load library pidip: can't load library Reset your preferences to fix this. Go to Edit-Preferences and click Reset to Defaults. .hc One thing I noticed is that the limits.conf for 10.04 is located in etc/security/ but the message is telling me to change the file in etc/ this is unrelated. various distributions put those files in different places (though it seems that at least on debian derivatives there is a consensus to use directories for configurations where potentially multiple agents (sysadmins as well as packages) want to add/remove their little bits), and nobody cared to modify the jack sources for your distribution to print out the correct filename. nevertheless, you probably should change your limits according to the suggestion you got. PUREDATA selection doesn't exist or form STRING not defined PUREDATA selection doesn't exist or form STRING not defined while executing selection get -selection PUREDATA (procedure first_lost line 2) invoked from within first_lost does this also happen with Pd-0.44 (e.g. from git)? I haven't tried .44 as of yet only the .43.4 version thanks fgmadsr IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] peaks and bringing them down to be more in line with the overall average of the signal
Greetings All Sorry if this got posted twice the computer gremlins seem to be at if again I have a signal In which sharp peaks are produced. Is there a way for me to bring the amplitude of these peaks down to be more in line with the overall average of the signal? Link to image: http://dl.dropbox.com/u/6576402/questions/peaks.png Link to example data: http://dl.dropbox.com/u/6576402/questions/example_data_with_peak.txt Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] increasing and decreasing values using keyboard
Greetings All I'm trying to see if their is a better way to increase and decrease values using the keyboard. At the moment the only way I've figured out to increase and decrease values using the keyboard is to 1) Create function for keyboard increasing value 2) Create function for keyboard decreasing value 3) Combine functions using bondo with expr to calculate value. Is their a better way to do this it seems convoluted. See attached PD PS: I'm using PD-extended .43.4 on ubuntu 10.04 Linux 64bit inc_dec.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] increasing and decreasing values using keyboard
Thanks that really does cut down on the clutter On Sat, Nov 3, 2012 at 9:08 AM, IOhannes m zmölnig zmoel...@iem.at wrote: On 11/03/2012 06:20 PM, Rick T wrote: Is th eir a better way to do this it seems convoluted. See attached PD maybe this: - add 1 to current sum whenever the user presses Up. - add -1 to current sum, whenever the user presses Down. see attachment. fgmsdr IOhannes PS: btw, i think that expr is _very_ overrated. i wished that people would consider altertnatives before throwing any problem that have at [expr] ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Using right, left, up, and down keyboard keys to toggle values
Since [key] doesn't show numbers for Up Left Right and Down arrow keys. I found a PD patch that will work, here's the link http://puredata.hurleur.com/sujet-974-keypress-issue Thanks On Sat, Oct 20, 2012 at 12:57 PM, Hans-Christoph Steiner h...@at.or.atwrote: Just type the key you want, and see the number come out of [key]. The [key] help patch will show you, or just add a number box. .h On 10/20/2012 06:29 PM, Rick T wrote: Greetings All I can toggle using the space bar key to toggle but how do I assign the Right, Left, Down and Up arrow keys? Is there a PD chart with their numbers? [key] | [sel 32] | [tgl] Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Using right, left, up, and down keyboard keys to toggle values
Greetings All I can toggle using the space bar key to toggle but how do I assign the Right, Left, Down and Up arrow keys? Is there a PD chart with their numbers? [key] | [sel 32] | [tgl] Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] convert bang to 1 else it's a 0
Greetings All I'm trying to output a a number 0 every second (to a text file) unless a bang is sent, in which case a number 1 will be written to the text file instead of a zero. The problem I'm having is converting a bang into a number. I tried using moses but moses has no number for bang. Any work arounds? Example: bng | moses 1 | | 0( 1( Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] convert bang to 1 else it's a 0
That won't work because once you bang the message box with the number 1it stays at 1 and it doesn't go back to the number 0 On Sun, Oct 14, 2012 at 2:20 PM, Simon Iten itensi...@gmail.com wrote: Just connect the bang to a messagebox containing 1 ? On Oct 15, 2012 1:46 AM, Rick T ratull...@gmail.com wrote: Greetings All I'm trying to output a a number 0 every second (to a text file) unless a bang is sent, in which case a number 1 will be written to the text file instead of a zero. The problem I'm having is converting a bang into a number. I tried using moses but moses has no number for bang. Any work arounds? Example: bng | moses 1 | | 0( 1( Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] convert bang to 1 else it's a 0
Thanks that worked On Sun, Oct 14, 2012 at 2:40 PM, Jaime Oliver jaime.oliv...@gmail.comwrote: many solutions that require a bit of imagination. check out the trigger object or see attached patch. J On Sun, Oct 14, 2012 at 8:25 PM, Rick T ratull...@gmail.com wrote: That won't work because once you bang the message box with the number 1 it stays at 1 and it doesn't go back to the number 0 On Sun, Oct 14, 2012 at 2:20 PM, Simon Iten itensi...@gmail.com wrote: Just connect the bang to a messagebox containing 1 ? On Oct 15, 2012 1:46 AM, Rick T ratull...@gmail.com wrote: Greetings All I'm trying to output a a number 0 every second (to a text file) unless a bang is sent, in which case a number 1 will be written to the text file instead of a zero. The problem I'm having is converting a bang into a number. I tried using moses but moses has no number for bang. Any work arounds? Example: bng | moses 1 | | 0( 1( Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- Jaime E Oliver LR jo2...@columbia.edu www.jaimeoliver.pe 858 750 0924 (cel) ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] counting how many times an audio file is looped
Thanks I've changed it to use Vline~ On Sat, Oct 6, 2012 at 12:54 AM, IOhannes m zmölnig zmoel...@iem.at wrote: On 10/06/2012 10:37 AM, Claude Heiland-Allen wrote: count the bangs that [tabplay~] will output via it's 2nd inlet. For long files, yes. probably for intermediate-sized files. with long files (those that do not easily fit into RAM; or when have a number of longish files, the total of which doesn't fit into RAM), you are probably better off using [readsf~]'s last outlet, which gives you a done bang as well, and count that. For microloops, I'd prefer [wrap~]: [...] which is nice as well, and tackles the real problem (i want to loop a sample N times) rather than a possible implementation (how can i count the number of loops (so i know when to stop). (Is [tabplay] clock-aware? it perhaps could be?) not afaik. however, in many cases you don't need (sub)sample-accurate timing and evaluation at block-boundaries is sufficient. gmd IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Shifting arrays (permutation)
Greets All I was looking for a way to shift arrays (permutation) by samples Example: 0, 22050 1000( (will start from 0 and play 22050 samples for 1000msec) | vline~ | tabread4~ I want to play a series of shifted (permuted) waves loaded from an array one right after each other, but If I do a ramp up from 20025 to 22050 samples and another ramp up from 0 to 20025 samples (this gives me a full shifted loop) but the time won't match up because each sample isn't 22050 samples, I plan on shifting the array like this for about 1 samples in both forward and backwards directions. Do I need to go back to using phasor~ again. Or is their an easier way to accomplish this. 20025, 22050 1000( (will start from 20025 and play to 22050 samples for 1000msec) | vline~ | tabread4~ Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Shifting arrays (permutation)
Thanks that fixed it On Wed, Oct 10, 2012 at 2:16 AM, Claude Heiland-Allen cla...@mathr.co.ukwrote: On 10/10/12 12:51, Rick T wrote: Greets All I was looking for a way to shift arrays (permutation) by samples (permutation generally refers to something more general than shifting or rotating, more like shuffling a deck of cards than cutting it) Personally I keep all my vline~ in [0..1] and use maths to manipulate. Especially because (vanilla's, zexy has a better one)b [wrap~] wraps to [0..1], and could be help do what you need: [0, 1 1000( | [vline~] | [+~ 0.25] -- this value in [0..1] too, modulatable at signal rate | [wrap~] | [*~ table size here] | [tabread4~ your table hear] will play the table wrapped around starting with the last 3/4 then first 1/4 To convert between samples and [0..1], elementary arithmetic helps. Claude -- http://mathr.co.uk __**_ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Strange bug with cup and moses
I added the trigger like you suggested to see if it would help, but the strange behaviour still occurs, granted it is most likely that I wired something incorrectly. They say a picture is worth a thousand words so by making a 720p video with annotations I thought it would better show/describe the problem. I use moses .98 (Bangs when it reaches a section/point greater than .98 of a wave file) | cup (increments by one) | moses 5 (when it reaches 5) | pd dsp 0 ((turns off patch when moses reaches 5) What happens is 1) moses and cup don't always start incrementing and filtering when the patch is enabled. 2) When the moses and cup section do work, after the pd dsp 0 command is triggered after moses reaches 5 the wave file /sound stops but cup still increments. * i also attached the pd file* Thanks Rick On Mon, Oct 8, 2012 at 9:06 PM, IOhannes m zmoelnig zmoel...@iem.at wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2012-10-08 22:39, Rick T wrote: Link to youtube video that shows the strange behaviour http://www.youtube.com/watch?v=ZIlxj-MOR0c would you mind explaining what the strange behaviour is? personally i don't feel very interested in being directed to some 3rd party homepage that tracks my surfing habits, phishes for my credit card number and eats babies for breakfast, just to discover that you forgot to use [trigger]. also, usually Pd patches are small enough to be attached to an email. if the patch does get bigger, you should probably try to trim down the problem to a simple patch that still exhibits the problem (if it's impossible to do that, chances are high that the bug is somewhere else). and Pd files are text only, so they compress very well. otoh, it's rather thoughtful to only send that big data once and not to every member of the list others might feel differently of course. fgamsdr IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlBzzNsACgkQkX2Xpv6ydvRmawCfbzmbzgHMI0P86EXSTK7J0byd uE4AnR2ibLFOpTroa/5IvalnNrREobGP =1Gwz -END PGP SIGNATURE- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list audio_read.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Strange bug with cup and moses
Greetings All I'm running into a strange bug with cup and moses. I've tried it with ubuntu 12.04 64bit linux version .43.3 puredata. And with 10.04 64bit ubuntu linux .42.5 I've posted a youtube video along with the code to see if anybody knows how to fix this or know of a work around. Link to youtube video that shows the strange behaviour http://www.youtube.com/watch?v=ZIlxj-MOR0c Link to code http://pastebin.com/pY1Xp0rR Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Convert numerical value to bang
Greetings All Is their a way to convert numerical values to a bang? Example: a number 1-10 will be converted to a bang Thanks Rick ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] counting how many times an audio file is looped
Greetings All I'm trying to count how may times an audio file is looped then cause it to stop after say 6 loops. 1) I plan on using the select object to compare the sample size (22050) to where the playing wav file is located 2) create a bang into cup object from the select object, this will count the number of loops. 3) Use another select object to stop when it reaches 6 The problem I'm having is trying to compare the sample size to where the playing wav file is currently located. I can get the sample size using the wavinfo object but how do I get the current location of the playing wav file. (I tried using the metro 50 object with the snapshot~ object) but the numbers don't seem be matching up Is there another way I should be doing this Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] counting how many times an audio file is looped
Yes I am using tabread4~ I looked up vline~ in the help but it seems to be missing some info on the second and third inlets. Is there some more information about this object. I'm using PD .42.5 extended on ubuntu 10.04 64bit I tried doing this but I get an error error: can't connect signal outlet to control inlet phasor~ | *~ | vline~ (error: can't connect signal outlet to control inlet) | tabread4~ Thanks On Fri, Oct 5, 2012 at 11:42 AM, Charles Henry czhe...@gmail.com wrote: On Fri, Oct 5, 2012 at 4:25 PM, Rick T ratull...@gmail.com wrote: Greetings All I'm trying to count how may times an audio file is looped then cause it to stop after say 6 loops. 1) I plan on using the select object to compare the sample size (22050) to where the playing wav file is located 2) create a bang into cup object from the select object, this will count the number of loops. 3) Use another select object to stop when it reaches 6 The problem I'm having is trying to compare the sample size to where the playing wav file is currently located. I can get the sample size using the wavinfo object but how do I get the current location of the playing wav file. (I tried using the metro 50 object with the snapshot~ object) but the numbers don't seem be matching up Is there another way I should be doing this Thanks Hi Rick I think you should use [vline~] to feed [tabread4~]. As long as you get the number of samples up front with wavinfo, like you mentioned, you can just schedule those 6 loops to play with vline~ (no need to count and stop the loop), and you always know what sample is playing, because it's the value of the vline~ output. You may also want another vline~ to fade-in and fade-out. Chuck ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Convert numerical value to bang
Thanks On Fri, Oct 5, 2012 at 12:03 PM, Jack j...@rybn.org wrote: Le 05/10/2012 22:27, Rick T a écrit : Greetings All Is their a way to convert numerical values to a bang? Example: a number 1-10 will be converted to a bang Thanks Rick ___pd-l...@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list Here two possibilities. One with two [moses] and the other with [=] and [=]. ++ Jack ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] counting how many times an audio file is looped
So are you say these wont help me with my original question? of trying to count how may times an audio file is looped then cause it to stop after say 6 loops. On Fri, Oct 5, 2012 at 1:01 PM, Simon Iten itensi...@gmail.com wrote: You only need vline or phasor, not both. The handling is a bit different though. Vline works via messages and creates arbitrary ramps. E.g. From 0 to 44100 in 1000 ms. Phasor just ramps from 0 to 1 in a time you supply as a frequency. You then multiply it's output and feed the tabread On Oct 6, 2012 12:26 AM, Rick T ratull...@gmail.com wrote: Yes I am using tabread4~ I looked up vline~ in the help but it seems to be missing some info on the second and third inlets. Is there some more information about this object. I'm using PD .42.5 extended on ubuntu 10.04 64bit I tried doing this but I get an error error: can't connect signal outlet to control inlet phasor~ | *~ | vline~ (error: can't connect signal outlet to control inlet) | tabread4~ Thanks On Fri, Oct 5, 2012 at 11:42 AM, Charles Henry czhe...@gmail.com wrote: On Fri, Oct 5, 2012 at 4:25 PM, Rick T ratull...@gmail.com wrote: Greetings All I'm trying to count how may times an audio file is looped then cause it to stop after say 6 loops. 1) I plan on using the select object to compare the sample size (22050) to where the playing wav file is located 2) create a bang into cup object from the select object, this will count the number of loops. 3) Use another select object to stop when it reaches 6 The problem I'm having is trying to compare the sample size to where the playing wav file is currently located. I can get the sample size using the wavinfo object but how do I get the current location of the playing wav file. (I tried using the metro 50 object with the snapshot~ object) but the numbers don't seem be matching up Is there another way I should be doing this Thanks Hi Rick I think you should use [vline~] to feed [tabread4~]. As long as you get the number of samples up front with wavinfo, like you mentioned, you can just schedule those 6 loops to play with vline~ (no need to count and stop the loop), and you always know what sample is playing, because it's the value of the vline~ output. You may also want another vline~ to fade-in and fade-out. Chuck ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Looping through an array a specific number of times
Greetings All I'm trying to loop a wav file a specific number of times after I load it into an array and play it using tabread4~. I was going to use moses and a spigot and I found the loop object but it doesn't have any help information it's just another sub-patch. Is their another object I should use to control the amount of loops a sound file plays? Thanks Rick ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Question on getting the amount of values in a table and setting table to zero
Greetings All 1) I'm trying to find a way to get the total amount of values in a table. I found arraysize but that doesn't seem to give me the correct output Example: If I create a table with ; arrayx 0 .1 .3 .5 .3 .1 I'm trying to get the output to be 5 since there are 5 values in it. 2) I'm also trying to set all values in array to zero with out having to zero each index. Example If I create a table with ; arrayx 0 .1 .3 .5 .3 .1 is there an option to set all indexes values back to zero (or set the entire array back to zero) without creating another object like this; arrayx 0 0 0 0 0 0 Thanks Rick PS: I'm using ubuntu 10.04 64bit pd .42.5 extended ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] getting sample rate of file loaded into an array
Greetings All I load a wavefile into an array using openpanel but how can I go about getting the sample rate of the wav file? I'm trying to load the sample rate data into an expr object Example: expr (sample rate) / f$1 Aloha Rick ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting sample rate of file loaded into an array
Thanks On Wed, Oct 3, 2012 at 1:45 PM, Patrice Colet colet.patr...@free.fr wrote: [ext13/wavinfo] or more complicated for the fun, with [mrpeach/binfile] and https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ it's attached ^^ Colet Patrice - Mail original - De: Rick T ratull...@gmail.com À: PD List pd-list@iem.at Envoyé: Jeudi 4 Octobre 2012 00:26:15 Objet: [PD] getting sample rate of file loaded into an array Greetings All I load a wavefile into an array using openpanel but how can I go about getting the sample rate of the wav file? I'm trying to load the sample rate data into an expr object Example: expr (sample rate) / f$1 Aloha Rick ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Concatenating floats
Greetings All I'm trying export time to a file in the format MMDDhhmmss but it doesn't concatenate MM DD hh mm ss when I use the pack object. I can export the data to a file but how do I concatenate everything together so it outputs as MMDDhhmmss with no spaces in-between? Aloha Rick ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Concatenating floats
Thanks for the info but two issues that pop up when I try this are 1) when I use zexy date and time object there's no option for leading zeros if I split everything out as floats. 2) when I pipe the messagebox [ $1$2$3$4$5$6$7$8$9$10$11$12$13$14 ] into the | add $1 | textfile it just prints 0; can a messagebox be used as a variable in the add object for textfile if not what should I replace it with. Thanks again PS I'm using pd 0.42.5 extended on ubuntu 10.04 64bit Aloha On Tue, Oct 2, 2012 at 12:35 AM, i go bananas hard@gmail.com wrote: if you just use $1 for something like 07, then it will cut off the leading zero (which in this case, you need) so might be best just to split everything into individual floats, like: [ 1 9 7 8 0 7 2 9 0 9 3 0 2 1 ( and then just feed that into a big compound message like [ $1$2$3$4$5$6$7$8$9$10$11$12$13$14 ( that way you get all the zeroes as well ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Concatenating floats
Thanks that made it work :-) Aloha On Tue, Oct 2, 2012 at 1:24 AM, Roman Haefeli reduz...@gmail.com wrote: On Mon, 2012-10-01 at 00:14 -1000, Rick T wrote: Greetings All I'm trying export time to a file in the format MMDDhhmmss but it doesn't concatenate MM DD hh mm ss when I use the pack object. I can export the data to a file but how do I concatenate everything together so it outputs as MMDDhhmmss with no spaces in-between? You probably need to do that in two steps: 1) Make sure, that all numbers have the correct number of digits 2) glue everything together 1) Use [makefilename %02d] to create a two digit symbol (- yeah, the output is a symbol!) with leading zeros from the incoming float. For the year you need [makefilename %04d] in order to create a four-digit symbol. You get the idea. 2) Use [pack s s s s s s] to put everything into a single list message. Then you get rid of the spaces with a message box like this: [symbol $1$2$3$4$5$6( Roman ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pd-extended 0.42.5 packages for many Ubuntu releases, i386/amd64
Greets Hans I'm testing your new version in ubuntu 12.04 64bit. However when I add the ppa and the deb line and do an sudo apt-get update the ubuntu software center does not find it. Any idea why? Aloha Rick On Fri, Sep 21, 2012 at 3:06 PM, Hans-Christoph Steiner h...@at.or.atwrote: Back in Jan/Feb, I put together a pd-extended.deb package that uses the normal process for building .deb packages rather than the crazy hack that normally builds the Pd-extended .deb packages. I finally worked out the final kinks, and there are now working packages for Ubuntu i386 and amd64 for Lucid and Maverick. Doing it this way means that anyone can build it using launchpad, opensuse build, or any other standard method. That means its easy to support both i386/amd64 32-bit/64-bit on Ubuntu lucid, maverick, natty, oneiric, precise, and quantal. I just uploaded builds for Hardy, Jaunty, Karmic, Lucid, Natty, Oneiric, Precise, and Quantal. Hopefully those all build. If this works out, then I'm going to switch all .deb building to this method. So please test these packages and let me know if they work for you! https://launchpad.net/~eighthave/+archive/pd-extended .hc ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pd-extended 0.42.5 packages for many Ubuntu releases, i386/amd64
Thanks ;-) Aloha Rick On Fri, Sep 28, 2012 at 8:32 AM, batinste dwanaf...@yahoo.fr wrote: Have a look at https://launchpad.net/~eighthave/+archive/pd-extended/+packages : Precise and Oneiric versions failed to build, so synaptic cannot show you any installable version. On 28/09/2012 19:07, Rick T wrote: Greets Hans I'm testing your new version in ubuntu 12.04 64bit. However when I add the ppa and the deb line and do an sudo apt-get update the ubuntu software center does not find it. Any idea why? Aloha Rick On Fri, Sep 21, 2012 at 3:06 PM, Hans-Christoph Steiner h...@at.or.atwrote: Back in Jan/Feb, I put together a pd-extended.deb package that uses the normal process for building .deb packages rather than the crazy hack that normally builds the Pd-extended .deb packages. I finally worked out the final kinks, and there are now working packages for Ubuntu i386 and amd64 for Lucid and Maverick. Doing it this way means that anyone can build it using launchpad, opensuse build, or any other standard method. That means its easy to support both i386/amd64 32-bit/64-bit on Ubuntu lucid, maverick, natty, oneiric, precise, and quantal. I just uploaded builds for Hardy, Jaunty, Karmic, Lucid, Natty, Oneiric, Precise, and Quantal. Hopefully those all build. If this works out, then I'm going to switch all .deb building to this method. So please test these packages and let me know if they work for you! https://launchpad.net/~eighthave/+archive/pd-extendedhttps://launchpad.net/%7Eeighthave/+archive/pd-extended .hc ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___pd-l...@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Error installing Puredata from software center
Thank you The command sudo apt-get install --reinstall puredata-doc worked Aloha Rick On Sat, Aug 18, 2012 at 8:44 AM, IOhannes m zmölnig zmoel...@iem.at wrote: sudo apt-get install --reinstall puredata-doc ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Error installing Puredata from software center
Thanks now when I try and go to the about and click on help and about or help and manual I get error messages couldn't open /usr/lib/puredata/doc/1.manual/1.introduction.txt: no such file or directory couldn't not find /usr/lib/puredata/doc/1.manual/index.htm: no such file or directory I tried installing the doc's from the software center and it says I have to uninstall puredata. Thanks Rick On Mon, Aug 13, 2012 at 7:58 AM, IOhannes m zmölnig zmoel...@iem.at wrote: On 08/12/2012 03:51 AM, Rick T wrote: Greetings All I have ubuntu 12.04 64bit running xfce and I installed puredata from the ubuntu software center and I get an error /usr/lib/puredata/tcl/pd-gui.**tcl failes to execute child process no such file or directory. How can I fix this? make sure that the puredata-gui package is installed, and if it already is, then re-install it. fg,smdr IOhannes __**_ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Error installing Puredata from software center
Greetings All I have ubuntu 12.04 64bit running xfce and I installed puredata from the ubuntu software center and I get an error /usr/lib/puredata/tcl/pd-gui.tcl failes to execute child process no such file or directory. How can I fix this? Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] loading wave file and playing based on samples in wav file
Greetings All I'm trying to load two 1 second mono wave files on a left and a right channel but have my midi controller control where the wav file starts playing/looping dynamically. An example would be if I want to have the channel start playing at 4000 samples it would start .5 seconds into the wav file. I need to have it be this accurate (based on samples) because I'm testing the effects of phases and this way I can calculate the phases very accurately between the wave files. Can PD increment by samples? Some of my thoughts where to load the wav files into an array and have the midi controller control where the array starts to play and loop that section. Is this possible, any examples? If not can someone recommend another program or another way. What I'm trying to accomplish 1) Have a mono wave file on a left channel and right channel 2) Use my midi controller to change the start location of where the wav file will start based on the number of samples in the wav file Thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] 1 second 44100 sample audio file into a wavetable
Greetings All I have a Technical question about making a 1 second 44100 sample audio file into a wavetable. Can puredata do this? If so are there any examples? if not can someone recommend a program to use for this? Is this the correct way to do this? I'm not exactly sure I'm even using the correct terminology. What I'm trying to do is have the wavetable of a 1 second 44100 sample audio file controlled by a midi controller so I can adjust the pitch and amplitude using the midi controller. Some basic code I'm using is below. But how can I alter this to adjust the values for the audio file in a wavetable. Please Note that the audio file is created in matlab/octave so it's not an easily created signal using sin and cos functions. -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] updating table is slow
Greetings All I'm trying to update a table every second so I can see phase and frequency changes but it takes about 5 seconds to see the changes. How can I speed this up but still see a 1 second sample of the table? Also is there a way to show two signals on one graphical table? Like in the hilbert~ example (I tried doing a tabwrite~ out-right and a tabwrite~ out-left but this didn't work thanks ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Multiplying signal by complex number to create and see phase shift
Greetings All I plan on adding a phase shift to a signal/a wave file I import which is easy enough mathematically example: if the signal is x=sin(2*pi*1*t) to do a phase shift I would just multiply x*e(-i*pi) which would phase shift the signal by 90 degrees. But how does one multiple signals by complex numbers in PD like -i? note: there will be a several different phase shifts so a simple hibert transform won't work in this instance thanks -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Having trouble getting my external to work
Greetings All I'm having trouble getting my external to work, It compiles with no errors and has 1 warning when I do a make but it completes successfully see warning below. cc -export_dynamic -shared -lc -lm -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC -Wall -W -Wshadow -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -I../../../../pd/src -o sineq.pd_linux sineq.c /usr/bin/ld: warning: cannot find entry symbol xport_dynamic; defaulting to 0980 strip --strip-unneeded sineq.pd_linux make[1]: Leaving directory `/home/rat/Documents/pd/code' Compilation finished successfully. I copy over the sineq.pd_linux to the pd-externals directory but when I try and add the external in PD it says couldn't create on the main console screen. Here's a link to the workflow of my thinking and what I'm trying to do, notice I have 4 float inputs and 1 signal output http://dl.dropbox.com/u/6576402/questions/pd/Sine_EQ_Diagram.jpg Link to code: (Pastebin) http://pastebin.com/wW9H4pWY Link to makefile (pastebin) http://pastebin.com/z9aTYVNY My external is a reproduction of the sinewave equation with 4 inputs that are floats and one output signal my logic is to have 4 inlets one for the frequency,amplitude,phase and vertical offset and an output for the created signal. Granted this isn't the final equation but this will help me understand how to create the full equation once done. If you want to see the full equation I'll be using here's a link to it below. http://dl.dropbox.com/u/6576402/questions/eq1.txt Basically it's a 1 second periodic signal with the sample rate at 44100 which the equation gives me control over the frequency,amplitude,phase and vertical offset, which will be controlled by a usb midi controller. Another question I have is what do I use for the t (time) for my final equation is that the t_sample object in PD? or do I need to create a for loop counting from 1-44100 for a 1 second 44100 sampled equation? like this link uses http://www.daniweb.com/software-development/c/threads/354944 PS: I'm compiling on ubuntu 10.04 using gcc Sorry for the link / information overload. After going over the d_osc.c, bassemu.c and the pan~ tutorial I'm a little stuck and not sure what's causing the issue. Aloha Rick ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Having trouble getting my external to work
Thanks Martin that got rid of the xport warning message aloha Rick On Sat, Sep 10, 2011 at 11:45 AM, Martin Peach martin.pe...@sympatico.cawrote: It should be -export-dynamic, not -export_dynamic. Martin On 2011-09-10 17:34, Rick T wrote: Greetings All I'm having trouble getting my external to work, It compiles with no errors and has 1 warning when I do a make but it completes successfully see warning below. cc -export_dynamic -shared -lc -lm -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC -Wall -W -Wshadow -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -I../../../../pd/src -o sineq.pd_linux sineq.c /usr/bin/ld: warning: cannot find entry symbol xport_dynamic; defaulting to 0980 strip --strip-unneeded sineq.pd_linux make[1]: Leaving directory `/home/rat/Documents/pd/code' Compilation finished successfully. I copy over the sineq.pd_linux to the pd-externals directory but when I try and add the external in PD it says couldn't create on the main console screen. Here's a link to the workflow of my thinking and what I'm trying to do, notice I have 4 float inputs and 1 signal output http://dl.dropbox.com/u/**6576402/questions/pd/Sine_EQ_**Diagram.jpghttp://dl.dropbox.com/u/6576402/questions/pd/Sine_EQ_Diagram.jpg Link to code: (Pastebin) http://pastebin.com/wW9H4pWY Link to makefile (pastebin) http://pastebin.com/z9aTYVNY My external is a reproduction of the sinewave equation with 4 inputs that are floats and one output signal my logic is to have 4 inlets one for the frequency,amplitude,phase and vertical offset and an output for the created signal. Granted this isn't the final equation but this will help me understand how to create the full equation once done. If you want to see the full equation I'll be using here's a link to it below. http://dl.dropbox.com/u/**6576402/questions/eq1.txthttp://dl.dropbox.com/u/6576402/questions/eq1.txt Basically it's a 1 second periodic signal with the sample rate at 44100 which the equation gives me control over the frequency,amplitude,phase and vertical offset, which will be controlled by a usb midi controller. Another question I have is what do I use for the t (time) for my final equation is that the t_sample object in PD? or do I need to create a for loop counting from 1-44100 for a 1 second 44100 sampled equation? like this link uses http://www.daniweb.com/**software-development/c/**threads/354944http://www.daniweb.com/software-development/c/threads/354944 PS: I'm compiling on ubuntu 10.04 using gcc Sorry for the link / information overload. After going over the d_osc.c, bassemu.c and the pan~ tutorial I'm a little stuck and not sure what's causing the issue. Aloha Rick __**_ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Having trouble getting my external to work
Greets Hans The site seems be down at the moment Reason: *Error reading from remote server* -- Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/4.4.4-8+etch6 mod_ssl/2.2.9 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.0 Server at puredata.info Port 80 but just to let you know I did get the make file from the online site I didn't make it myself there just may have been a typo in it. I'm just not sure why it's saying couldn't create when I try and add my external in PD aloha Rick On Sat, Sep 10, 2011 at 12:26 PM, Hans-Christoph Steiner h...@at.or.atwrote: There is no need to write your own build system, use the Library Template, it'll then build on GNU/Linux, Mac OS X, Windows, Android, etc. http://puredata.info/docs/**developer/LibraryTemplatehttp://puredata.info/docs/developer/LibraryTemplate .hc On Sep 10, 2011, at 5:45 PM, Martin Peach wrote: It should be -export-dynamic, not -export_dynamic. Martin On 2011-09-10 17:34, Rick T wrote: Greetings All I'm having trouble getting my external to work, It compiles with no errors and has 1 warning when I do a make but it completes successfully see warning below. cc -export_dynamic -shared -lc -lm -DPD -O2 -funroll-loops -fomit-frame-pointer -fPIC -Wall -W -Wshadow -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -I../../../../pd/src -o sineq.pd_linux sineq.c /usr/bin/ld: warning: cannot find entry symbol xport_dynamic; defaulting to 0980 strip --strip-unneeded sineq.pd_linux make[1]: Leaving directory `/home/rat/Documents/pd/code' Compilation finished successfully. I copy over the sineq.pd_linux to the pd-externals directory but when I try and add the external in PD it says couldn't create on the main console screen. Here's a link to the workflow of my thinking and what I'm trying to do, notice I have 4 float inputs and 1 signal output http://dl.dropbox.com/u/**6576402/questions/pd/Sine_EQ_**Diagram.jpghttp://dl.dropbox.com/u/6576402/questions/pd/Sine_EQ_Diagram.jpg Link to code: (Pastebin) http://pastebin.com/wW9H4pWY Link to makefile (pastebin) http://pastebin.com/z9aTYVNY My external is a reproduction of the sinewave equation with 4 inputs that are floats and one output signal my logic is to have 4 inlets one for the frequency,amplitude,phase and vertical offset and an output for the created signal. Granted this isn't the final equation but this will help me understand how to create the full equation once done. If you want to see the full equation I'll be using here's a link to it below. http://dl.dropbox.com/u/**6576402/questions/eq1.txthttp://dl.dropbox.com/u/6576402/questions/eq1.txt Basically it's a 1 second periodic signal with the sample rate at 44100 which the equation gives me control over the frequency,amplitude,phase and vertical offset, which will be controlled by a usb midi controller. Another question I have is what do I use for the t (time) for my final equation is that the t_sample object in PD? or do I need to create a for loop counting from 1-44100 for a 1 second 44100 sampled equation? like this link uses http://www.daniweb.com/**software-development/c/**threads/354944http://www.daniweb.com/software-development/c/threads/354944 PS: I'm compiling on ubuntu 10.04 using gcc Sorry for the link / information overload. After going over the d_osc.c, bassemu.c and the pan~ tutorial I'm a little stuck and not sure what's causing the issue. Aloha Rick __**_ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list __**_ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list --**--** 'You people have such restrictive dress for women,’ she said, hobbling away in three inch heels and panty hose to finish out another pink-collar temp pool day. - “Hijab Scene #2, by Mohja Kahf ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Having trouble getting my external to work
I did a gcc -v and this is what came back. I'm using ubuntu 10.04 64bit Linux Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) On Sat, Sep 10, 2011 at 5:31 PM, Mathieu Bouchard ma...@artengine.cawrote: On Sat, 10 Sep 2011, Martin Peach wrote: It should be -export-dynamic, not -export_dynamic. The GCC manpage I have does not mention -export-dynamic other than to say that -rdynamic is a gcc option that corresponds to ld's -export-dynamic option. On which versions of GCC does -export-dynamic work ? __**__** ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] exporting text file and formatting question
Greetings all I would like to export data to a text file every time the metro is banged with the format MMDDhhmmss, float, float, float I can create the data but the questions I have 1) I keep getting a write failed. 2) how can I get the commas between the values? 3) is there a way to do leading zeros? Here's a link to my pd http://dl.dropbox.com/u/6576402/questions/pd/export_text.pd Ps: I'm using Linux ubuntu 10.04 64bit thanks #N canvas 644 98 688 570 10; #X obj 102 162 date; #X obj 167 158 time; #X obj 168 81 metro 1000; #X obj 160 27 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 183 134 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X floatatom 22 209 5 0 0 0 - - -; #X floatatom 347 214 5 0 0 0 - - -; #X obj 345 101 i; #X msg 408 57 0; #X obj 403 99 + 2; #X obj 401 6 loadbang; #X floatatom 65 208 5 0 0 0 - - -; #X floatatom 111 210 5 0 0 0 - - -; #X floatatom 169 212 5 0 0 0 - - -; #X floatatom 218 212 5 0 0 0 - - -; #X floatatom 261 212 5 0 0 0 - - -; #X obj 225 469 textfile; #X obj 167 386 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 44 290 pack f f f; #X obj 207 290 pack f f f; #X obj 56 248 bondo 3; #X msg 221 405 print; #X msg 220 434 write /tmp/testfile.txt; #X obj 398 168 + 3; #X obj 450 169 - 1; #X floatatom 399 214 5 0 0 0 - - -; #X floatatom 458 214 5 0 0 0 - - -; #X obj 214 250 bondo 3; #X obj 391 247 bondo 3; #X obj 227 328 bondo 3; #X obj 383 284 pack f f f; #X obj 218 367 pack f f f; #X obj 222 505 print list; #X text 114 249 MMDDhhmmss; #X connect 0 0 5 0; #X connect 0 1 11 0; #X connect 0 2 12 0; #X connect 1 0 13 0; #X connect 1 1 14 0; #X connect 1 2 15 0; #X connect 2 0 4 0; #X connect 2 0 0 0; #X connect 2 0 7 0; #X connect 2 0 1 0; #X connect 3 0 2 0; #X connect 5 0 20 0; #X connect 6 0 28 0; #X connect 7 0 6 0; #X connect 7 0 9 0; #X connect 7 0 23 0; #X connect 7 0 24 0; #X connect 8 0 7 1; #X connect 9 0 7 1; #X connect 10 0 8 0; #X connect 11 0 20 1; #X connect 12 0 20 2; #X connect 13 0 27 0; #X connect 14 0 27 1; #X connect 15 0 27 2; #X connect 16 0 32 0; #X connect 18 0 29 0; #X connect 19 0 29 1; #X connect 20 0 18 0; #X connect 20 1 18 1; #X connect 20 2 18 2; #X connect 21 0 17 0; #X connect 21 0 22 0; #X connect 22 0 16 0; #X connect 23 0 25 0; #X connect 24 0 26 0; #X connect 25 0 28 1; #X connect 26 0 28 2; #X connect 27 0 19 0; #X connect 27 1 19 1; #X connect 27 2 19 2; #X connect 28 0 30 0; #X connect 28 1 30 1; #X connect 28 2 30 2; #X connect 29 0 31 0; #X connect 29 1 31 1; #X connect 29 2 31 2; #X connect 30 0 29 2; #X connect 31 0 21 0; ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Function generator / Signal Generator expr~ and cycle~
Greetings All I'm trying to create a function generator that uses equations (small equations on this one.) and have the audio played and plotted. An example of an equation would be the sine wave equation y=a*sin(f*t+p)+v a=amplitude, f=frequency, t=time, p=phase, v=vertical offset. I looked up in the example and found cycle~ which said table-lookup oscillator or function generator but not sure where to put the expr~ I would think it would go like this. but of course the syntax must be wrong. expr~ $f1+sin*(($f2*$f3)+$f4)+$f5 | cycle~ a=$f1=amplitude, f=$f2=frequency, t=$f3=time, p=$f4=phase, v=$f5=vertical offset. Please note the equations will not just be a simple sinewaves they will have cos, tan, atan, etc but be no more than 4 lines long. I also plan on connecting the $f1,$f2,$f4,$f5 variables to a usb midi controller to vary the values as the audio signal is played in realtime. aloha Rick -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Function generator / Signal Generator expr~ and cycle~
Thanks I can get tabwrite~ to work but I'm still unsure as of how to wire in the equation to create a custom waveform using expr~ http://dl.dropbox.com/u/6576402/questions/pd/rtsiggen.http://dl.dropbox.com/u/6576402/questions/pd/rtsiggen.pd pd http://dl.dropbox.com/u/6576402/questions/pd/rtsiggen.pd http://dl.dropbox.com/u/6576402/questions/pd/rtsiggenpic.jpg expr~ $f1+sin*(($f2*$f3)+$f4)+$f5 a=$f1=amplitude, f=$f2=frequency, t=$f3=time, p=$f4=phase, v=$f5=vertical offset. Please note the equations will not just be a simple sinewaves they will have cos, tan, atan, I also plan on connecting the $f1,$f2,$f4,$f5 variables to a usb midi controller to vary the values as the audio signal is played in realtime. Thanks On Tue, Sep 6, 2011 at 5:46 AM, Mathieu Bouchard ma...@artengine.ca wrote: On Tue, 6 Sep 2011, Rick T wrote: I looked up in the example and found cycle~ which said table-lookup oscillator or function generator cycle~ is just a Max/MSP-compatible version of osc~. I would think it would go like this. but of course the syntax must be wrong. expr~ $f1+sin*(($f2*$f3)+$f4)+$f5 | cycle~ look into tabsend~ and tabwrite~ instead. __**__** ___ | Mathieu Bouchard tél: +1.514.383.3801 Villeray, Montréal, QC ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] importing / using large equation into expr command
Greetings All I have 2 large equations that I would like to use with the expr command. Is it possible to import a text file into the expr command? Here's an example of one of the 2 equations http://dl.dropbox.com/u/6576402/questions/eq1.txt Basically it's a 1 second periodic signal with sample rate at 44100 which the equation gives me control over the frequency,amplitude,phase and vertical offset I do have the ability to create a wave (audio) file of the equation first and import the wave file into PureDate, but will I have the same control over the frequency,amplitude,phase and vertical offset that the equation gives me?. If you want to know what I'm creating. 1) The first option will import a text file into a table/array that will control the variables of the equations that will vary frequency,amplitude,phase and vertical offset over time. 2) The second option will allow the variables to be controllable/variable using a midi controller and it's audio signal played I know Puredata can do this very well with small equations and the expr command but using large equations I'm not sure. Also if I should be doing this in a different way please let me know I'm always willing to learn something new. Thanks -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] importing / using large equation into expr command
Thanks for the information. I've been able to find instructions on how to create a hello world C-external but not one that does a simple sinewave equation like A*sin(w*t+p) ( https://secure.wikimedia.org/wikipedia/en/wiki/Sine_wave) Does anyone have one or know where to find one. It makes sense to make a C external and create inputs for the values of frequency,amplitude,phase and vertical offset. That way I can feed/control those values with a midi controller or a table/array in PureData. Thanks On Sun, Sep 4, 2011 at 5:35 AM, Hans-Christoph Steiner h...@at.or.atwrote: A .pd file is a text file, so you can just open your Pd patch in a text editor, and paste in the equation. But honestly with something that big, I think making a C external might be easier in the long run. .hc On Sep 4, 2011, at 9:22 AM, Rick T wrote: Greetings All I have 2 large equations that I would like to use with the expr command. Is it possible to import a text file into the expr command? Here's an example of one of the 2 equations http://dl.dropbox.com/u/6576402/questions/eq1.txt Basically it's a 1 second periodic signal with sample rate at 44100 which the equation gives me control over the frequency,amplitude,phase and vertical offset I do have the ability to create a wave (audio) file of the equation first and import the wave file into PureDate, but will I have the same control over the frequency,amplitude,phase and vertical offset that the equation gives me?. If you want to know what I'm creating. 1) The first option will import a text file into a table/array that will control the variables of the equations that will vary frequency,amplitude,phase and vertical offset over time. 2) The second option will allow the variables to be controllable/variable using a midi controller and it's audio signal played I know Puredata can do this very well with small equations and the expr command but using large equations I'm not sure. Also if I should be doing this in a different way please let me know I'm always willing to learn something new. Thanks -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it.- Thomas Jefferson ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Gem VJ Tutorial patches
Here's a basic video/example using GEM and Puredata. https://www.youtube.com/watch?v=XyS2M0mM5iA On Sun, Sep 4, 2011 at 8:39 AM, stéfan piat stefanp...@gmail.com wrote: hello, here are the links to the max neupert's tutorials http://www.uni-weimar.de/medien/wiki/Audiovideo http://www.uni-weimar.de/medien/wiki/Bewegungsmelder 2011/8/24 Pagano, Patrick p...@digitalworlds.ufl.edu Hey I am soliciting examples for entry level GEM patches that work on linux/windows and OSX that show how to mix a video or react to sound. I recall a set of them called Begenswelder? That had a real good example for a sound reactive GEM patch but I cannot find it in my files, Please refresh my memory and as I asked anyone who has a simple patch(s) for understanding GEM or Vjing that works cross platform would be greatly appreciated. I have a few but I am trying to expand my cross platform examples. Thanks in advance pp ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- -- |==| |http://www.onewithall.net/ |==| Knowledge may be the Key But wisdom unlocks the door Absolute Power demands absolutely nothing As the old maxim has it, you need find only one white crow to disprove the rule that all crows are black The bourgeois today burns as heretics and hangs as criminals those to whom he erects monuments tomorrow ('Steppenwolf') |==| ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Appending two signals together to create a third
Greetings All I have two signals Signal B and Signal C that I would like to append, which would create a joined signal called Signal D. I can create Signal B and Signal C but the questions I have is: I created a image that may help explain it better http://dl.dropbox.com/u/6576402/questions/flowchart_joined2.jpg 1) How do I append one signal onto the end of another. (see image labelled 2) 2) How can I vary Signal D's Frequency, Amplitude, and Phase? (See image labelled 3) I was thinking of putting a Signal B and Signal C into 1 second buffer that creates Signal D but does anyone know how to do this and if this would even work? Is PureData the program for this or is there another one that might be better suited for my task For more background I'm going to have the Frequency, Amplitude, and Phase controlled by Midi Controllers. So there will be a total of 9 midi controllers used (3 for each signal). Aloha Rick -- -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] PD and using L-systems with sound
PD and using L-systems sound Greetings All I found a good tutorial that graphs and explains (axioms and Rules) but how would I convert the rules into Puredata audio logic? http://penguinpetes.com/b2evo/index.php?title=inkscape_tutorial_l_system_fractals I did find this but really couldn't see how he chose the values that he did does anyone have the audio/video lecture of this? http://download.puredata.info/convention04/lectures/tk-chenry/ tia -- ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] increasing/decreasing frequency and phase shifting of imported wav audio file
Greets All I'm trying to increase/decrease frequency and phase shift a wav file that I import. I realize that I most likely have to use fft. But I haven't been able to find an example of increasing/decreasing frequency and phase of a imported wav audio file numerically. Any suggestions? tia ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] watching PD tutorial video using vlc and running PD at same time sound issues
Greetings All I'm using PD extended 0.42.5 and vlc 1.1.10 on Ubuntu 64 bit. I'm trying to play the tutorial videos in vlc while pd is running but the two seem to fight over the sound card and PD seems to win so I can't hear the PD tutorial audio. Is there a way that I can watch the pd video tutorials in vlc and use the PD program at the same time so sound comes out of both? Tia ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list