• Balwyn

    Here I've uploaded plot graph as an abstraction plus two other abstractions to assist in its usage make-plot and cursor-drive

    plot-graph creation: plot-graph unique-name size-x size-y;
    Address the settings with messages to in-unique-name (eg [s in-$0-channel-L] or connect a control-rate wire to top left corner;

    make-plot creation: make-plot array-name plot-resolution;
    eg [make-plot $0-left-channel 200]
    make-plot is used to take the audio file size given by soundfiler and divide that by the x resolution of the plot-graph window, read the array in chunks of the min max amplitudes to plot the waveform.

    cursor-drive creation: [cursor-drive x resolution] eg [cursor-drive 200] drives the play cursor if active

    For best results I found it best to keep the resolution to half the window size, say 200 window 100 resolution

    SETTINGS. for plot-graph
    size float float (can be set as a creation arg);
    min float (y value <= 0 for peaks -1 to 0);
    max float (y values>= 0 for peaks 0 to 1);
    index float (x value 0 to resolution cur float (x position for cursor 0 to resolution);
    cur-vis float (hide/show cursor 0 or 1);
    min-vis float (hide/show min plot 0 or 1);
    max-vis float (hide/show max plot 0 or 1);
    colour float float float float float float;
    where:-;
    float 1 = back colour (0 to 999 struct colours);
    float 2 = border colour (0 to 999 struct colours);
    float 3 = plot colour (0 to 999 struct colours);
    float 4 = cursor colour (0 to 999 struct colours);
    float 5 = plot thickness (1 to 5ish);
    float 6 = border thickness (0 to 30ish);
    plot-fill float (hide/show fill 0 or 1)
    fill-col float float (0 to 999 thickness 0 to 5)

    For an animated plot with fill try the following in the plot-graph-help
    load audio file
    click 100 resolution
    click look here for more
    scale x using the number-box to 200
    toggle off min-vis and cursor-vis
    click play (and loop if a small file)
    in the more page
    toggle scope plot
    toggle fill plot
    adjust normalise
    play with the colours

    plot-graph.pd and plot-graph-help.pd are read only to prevent overwriting the defaults, change this if you wish

    Have fun
    Cheers
    Balwyn

    plot-graph.zip
    The picture is reduced to 70%
    image.png

    posted in abstract~ read more
  • Balwyn

    @lo94 looking at all those connections I thought I would mention the built in intelligent patching.
    where you can select all the nodes you want to connect, proceed to connect the first wire but hold the mouse button down, then tap the the shift key.. voila! all connected.
    one to many, many to many, many to one

    posted in technical issues read more
  • Balwyn

    @svanya take a look at B14.sampler.rockerfella.pd in the /doc/3.audio.examples

    posted in technical issues read more
  • Balwyn

    This may be of no use whatsoever

    I've just resurrected an old Lenovo Android tablet and reinstalled MobMuPlat then I installed 'Shell Terminal Emulator'
    I copied my dir.mmp, dir.pd and dirtext.txt to the MobMuPlat folder
    I then copied about six wav files to the music folder
    Then ran Shell Terminal Emulator and entered after the prompt..

    find /sdcard/music/ -type f >/sdcard/MobMuPlat/dirtext.txt

    Then ran MobMuPlat dir.mmp
    And yes! the menu had the filenames I copied

    Plus all the files (about 150) in the other system folders in the Music folder - oops!

    The filenames are preceded by the folder names however, eg /sdcard/music/drum.wav

    posted in technical issues read more
  • Balwyn

    Ah well, now I'm stumped, and I solved my menu issue (case sensitivity).
    I would be pretty sure there would be a script that could fill the text file then start MobMuPlat filename, but I its out of my league

    posted in technical issues read more
  • Balwyn

    I managed to get a slider to write to a label but couldn't manage to fill a menu
    image.png

    posted in technical issues read more
  • Balwyn

    it just occurred to me that your project would be running on a phone or tablet is the pd file on a PC?

    posted in technical issues read more
  • Balwyn

    if you are running windows, you could start a batch file first that creates a text file of the directory
    e.g. dir2text.bat that uses the /b/a-d flags to strip the unwanted file data
    this copies the *.wav file names from my desktop\loops folder to dir-list.txt in a folder dir-list on my desktop

    dir /b /a-d C:\Users\David\Desktop\loops\*.wav > c:\Users\David\Desktop\dir-list\dirtext.txt
    exit

    then in pd
    image.png

    posted in technical issues read more
  • Balwyn

    maybe more useful to the @yannseznec ys.granular.pd would be this kind of plot
    This one fits the whole table to the 1024 element display, is visually scalable and has a milliseconds played cursor

    Edited 11/08/2022 fixed an error where I used x y x1 y1 instead of x1 y1 x2 y2 in the template which caused the need to adjust the y position of the plot by -1.5. the file and pic have been updated. I've also added a zero to the end of [plot vector c3 1 y] to centre the y axis
    here is the new pd file wave-display.pd

    image.png

    posted in technical issues read more
  • Balwyn

    in response to this thread I thought I would give graphing audio in a data structure a go.
    This is my result
    scope-trace.pd
    Edited 11/08/2022 fixed an error where I used x y x1 y1 instead of x1 y1 x2 y2 in the template which caused the need to adjust the y position of the plot by -1.5. the file and pic have been updated. I've also added a zero to the end of [plot vector c3 1 y] to centre the y axis

    image.png

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!