• ymotion

    Hi,
    I'm trying to make a very simple synth using the computer keyboard: building adsr envelope when I press and release a key. The adsr itself is working fine. but I get something weird when using [keyname].
    When connecting the left inlet of [keyname] to a number box, I get "1" when the key is pressed and "0" when the key is released. But if I connect a [print] object to the left outlet, I get a series of 1s and 0s, one after the other...

    Is there a bug? Am I missing something?

    Also, [keyup] does not do the work, so I don't have an alternative..

    I attach the patch

    Thanks a lot.

    ymotion

    http://www.pdpatchrepo.info/hurleur/adsr0.pd

    posted in technical issues read more
  • ymotion

    Hi,
    I'm working on a sound-art project with 16 channels. It's quite simple in terms of PD: I only need the patch to choose one audio file (out of many), then play it through the loudspeakers in a specific timing pattern, with some delay.

    I have total of 120 audio files, around 5 min each, in mp3 format. I downloaded the files from various sources, so they are not normalized.

    I'm not sure what would be the best way to read the files. I can:

    (1) Play the mp3 from HD.
    (2) Import the mp3 to PD as arrays, send [normalize( to all arrays and then use either [tabplay~] or [tabread4~]
    (3) Use a DAW to normalize and convert the mp3 to WAV, then play the files from HD using [readsf~]
    (4) Use a DAW to normalize and convert the mp3 to WAV, then import the files to PD as arrays and use either [tabplay~] or [tabread4~].

    I've never worked with mp3 in PD (so I don't know how to do options 1 & 2). I read several posts which made me think mp3 is not very stable...The project is going to be exhibit in a museum, the timing is extremely important, so it cannot bear any undesired delays or lags. I don't mind working extra time converting all files with a DAW...I'm also not sure whether it's OK to have 120 arrays (will it slow PD down?) or better just to keep the files on the HD and read it from there.

    Thanks!
    ymotion

    posted in technical issues read more
  • ymotion

    I get the dotted red square when trying to write openpanel in an object.
    mp3play~ is not recognized
    bng, hsl guis do not work...

    Where did they all go? Should I download external libraries for that?

    I'm running 0.43.4

    HELPPPPP

    posted in technical issues read more
  • ymotion

    Hi,
    I'm working on building a subtractive synth, with basic filters (LP, HP, BP, notch), and would like to be able to see a graphic representation of the filter as I change parameters. Any suggestion how to do it?
    Also, any LP filter object where I can also change the resonance? (any filter object - of any kind - will be appreciated!)

    Thanks!

    posted in technical issues read more
  • ymotion

    Hi,
    I'm looking for a way to generate a row, lets say of 12 elements (0-11), in a random order, but without repetition of the elements. If I use [random 12] I obviously can have the same number more than once. Any suggestion?
    Thanks!
    ymotion

    posted in technical issues read more
  • ymotion

    Hi,
    I don't think there's a way to change more than a single creation argument of [sel] object,. If yes, please let me know :-)
    I'd like to change [sel 16 32 48 64] and multiple its arguments by 2, 3, 4, 5.
    I can write five different [sel] objects and use gates to route the data to the appropriate [sel] object. But I'm looking for a neater solution here.

    background: I have a simple sequencer w/16 beats and five presets. I created a player to play a "song"= one preset after the other: the first preset, then (after 16 beats) move to the second, third etc. See attached patch. I'm interested in changing the number of repetitions for each preset. For ex., playing each preset twice, three times or four times.
    I have a general counter - the [r count] object in the attached patch. So moving from [sel 16 32 48 64], to [sel 32 64 96 128] or [sel 48 96 144 192]

    Any suggestions?
    Thanks a lot.
    ymotion

    http://www.pdpatchrepo.info/hurleur/select.pd

    posted in technical issues read more
  • ymotion

    Hi,
    I'm trying to see if there's a shorter way for the patch I made. Essentially, I have a row of toggle-guis and I'm storing their positions (0 or 1) into an array. I'm using the [send] object to do it- see the attached file. Now, I'd like to be able to do the other way around as well - meaning to send info from the array to the guis. For that, I'm dumping the values of the array as a list and then using

    to send each value to the appropriate gui.
    So, is there another way to do it?
    Hope to get your advice here.
    ymotion

    ps
    What happens if I have like 100 toggle-guis? Will I need to have send message for each? Why do I have a feeling that the answer is "yes"? :-)

    http://www.pdpatchrepo.info/hurleur/presets.pd

    posted in technical issues read more
  • ymotion

    Hi,
    I notice that when sending a list of values to an array via a message, you need to add an extra value at the beginning of the list. For ex, if I want an array named "table" to have the following values {1, 1, 0, 1}, I need to send this message
    [; table 0 1 1 0 1(

    Am I right? any explanation why? I feel I miss something here, maybe the syntax/architecture of a message...
    thanks
    ymotion

    http://www.pdpatchrepo.info/hurleur/message-2-table.pd

    posted in technical issues read more
  • ymotion

    Hi guys,
    This is definitely not a life-death issue, but...
    Is there a way to insert Pi without the need to enter all the digits? I mean, with the attached patch I get funny things like sin 180 deg = -2. e-06, or sin 360= 4.4e-06
    This is probably because one cannot enter the accurate value of Pi (I tried to, but Pd does not accept more than five digits after the point).
    Honestly, I do want to see "0" when Pd calculates sin 180 :-)
    Any suggestion (other than "go grab a beer")?
    ymotion

    http://www.pdpatchrepo.info/hurleur/sin.pd

    posted in technical issues read more
  • ymotion

    Hi,
    I'd like to do some very basic stuff with stream of values coming from a sensor. Lets say I'd like to take a value and subtract it from the value that follows it. I came up with a solution, which does the work (see attachment) but I'm sure there's a more friendly way to do that. Especially if I'm looking for a way to do some more complicated stuff with streams...
    Hope to hear some suggestions.
    Thanks a lot!
    ymotion

    http://www.pdpatchrepo.info/hurleur/stream.pd

    posted in technical issues read more
  • ymotion

    Hi,
    I'm going to use several [tabosc4~] objects to read from a single wavetable (named array1) Is it OK, or do I need to change the table name to "$0-array1"?
    From what I've seen so far, there's no need to do the $0, but I'm not sure what will happen if I keep adding more and more [tabosc4~] objects. Anyone has some experience here?
    Thanks!
    ymotion

    posted in technical issues read more
  • ymotion

    Hi,
    I'm looking for a way to turn a sine wave into a square wave, working with tables instead of audio objects. This is how you do it with audio objects:

    [osc~]
    |
    [*~ 1e+07]
    |
    [clip~ -0.99 0.99]

    Is there a way to do the same with tables (take a table with one period of a sine wave and turn it into a square)?

    I guess my question is how to edit a wavetable,making it possible to multiply or trim all its values. Something similar to this:

    [normalize(
    |
    [send array1]

    Thanks a lot!
    ymotion

    posted in technical issues read more
  • ymotion

    Hi,
    Can someone explain how does [mrpeach/midifile] work?
    I'm looking for a way to change the reading tempo of a midi file, and someone suggested this object.
    Many thanks!

    posted in technical issues read more
  • ymotion

    Hello everyone,
    I'm trying to control parameters in my DAW with PD. Especially, I'm interested in controlling the playback of a MIDI file. So, I'm looking to make the DAW a slave and PD master. I know that MIDI Beat Clock (MBC) is a good way to synchronize between DAW and PD. This is what I managed to pull out of the web:
    MBC sends 24 messages per sec. The messages are "248". To start you need 250 message, 252 to stop.

    1. Can I assume that if I change the rate of MBC - for example from 24 fps to 20 fps - the MIDI file will be read slower? It seems reasonable, but I have no experience here...

    2. Does anyone know how to create the MBC in PD? I read somewhere in the forum that [midirealtimein] can do it. But I know very little about MIDI in PD.

    I couldn't find any tutorials on MIDI, and the Help files do not cover all the objects.

    Thanks for any input!
    ysound

    posted in technical issues read more
  • ymotion

    Hi,
    For a sound-art project...Is there a way to change the length of an audio file (as a table) - making it longer of shorter - without affecting the pitch?
    In "Programming Electronic Music in PD" Kreidler specifies it can be done with granular synthesis.
    http://www.pd-tutorial.com/english/ch03s07.html

    But his examples are about changing the pitch without changing the length.

    Thanks!

    ymotion

    posted in technical issues read more
  • ymotion

    Hi,
    I'd like to build a controller which will enable me to change in real-time the tempo of playing a MIDI file. I've never worked with MIDI in PD. What would be the best way to realize such a project?
    Many thanks!
    ymotion

    posted in technical issues read more
  • ymotion

    Hi,
    I'm working on an installation with 16 channels. I wrote an abstraction and like to use its local variable inside a [throw~] object. So if the name of the abstraction is [channel], I'm going to use it as [channel 1], [channel 2] ect... and in another sub-patch I'll put [catch~ ch1] [catch~ ch2] .... [catch ch16]

    inside the abstraction:
    [f $1]
    |
    [set ch$1(
    |
    [throw~]

    I get the message : "warning: ch1: multiply defined"
    and also: "error: throw~ : no matching catch"
    What can I do to solve it? Is it possible at all to do it the way I'm trying to?

    Also, the abstraction is located inside a sub-patch, and the [catch~] objects are in a different sub-patch. Would Pd be able to connect between the abstraction and all sub-patches of the parent patch?

    Thanks a lot for your help here,
    ymotion

    posted in technical issues read more
  • ymotion

    I'm trying to get some externals for working and manipulating matrices. I've found iemmatrix-0.2, but some of the objects there are missing (like the [matrix] and [matrix~], which are the basic objects for the library...). They do have those objects in files ending with .c, but I don't know what to do with that..
    anyone can suggest an external or how to find the [matrix] object?
    Thanks
    yMotion

    posted in technical issues read more
  • ymotion

    Hi guys,
    I was wondering if there's a better way to install externals than the one I'm using.
    After downloading the external library I place it in the /Library/Pd folder, and create a path using Preferences/Path/name. But it seems that in this way Pd does not recognize the objects that are in sub-folders, only those that are directly under the folder name I indicated in the path. So I need to make more paths for each sub-folder. Sometimes externals have more than few sub-folders, and inside those sub-folders one can find more sub-folders...the objects are just scattered all over...rrrrr. I wonder if there's a way to make Pd recognize all the objects without changing the way the objects are organized in the original library.
    Many thanks!
    yMotion

    posted in technical issues read more
  • ymotion

    I get the following error message:
    error: graph: empty bounds rectangle

    What does it mean and how can I fix it?
    Thanks a lot,
    yMotion

    posted in technical issues read more
Internal error.

Oops! Looks like something went wrong!