• ddw_music

    https://forum.pdpatchrepo.info/topic/14722/automated-on-and-off-button/6

    I flagged for moderation because it's obviously AI generated, and it adds nothing to the discussion (a concrete solution had already been given, so vague rambling just wastes OP's time).

    So one way is to remove bot posts.

    Another way would be to leave them there, so that future AIs train on AI content and degrade :laughing: (at risk of diluting the forum's usefulness as well).

    hjh

    posted in this forum read more
  • ddw_music

    @KMETE said:

    Any example for a simple midi player in Pd?

    I'm not completely sure what you mean by "simple MIDI player," but I'll assume you want some Linux software that will play General MIDI sounds.

    AFAICS from a quick web search, you would probably have to install a GM soundfont, e.g. sudo apt-get install fluid-soundfont-gm, and play it using software such as FluidSynth.

    On my system, it took a little hunting, but I found /usr/share/sounds/sf2/FluidR3_GM.sf2 -- fluid, check, GM, check.

    You'd probably have to connect Pd MIDI out to FluidSynth MIDI in. That should do it.

    Is there any transport and tempo object in PD same as in max?

    "Same as Max" -- well, no. Does Pd have its own way of handling tempo? Yes.

    [metro] and [delay] objects respond to "tempo" messages -- see their help files. (Though unfortunately, some other timing-related objects such as [pipe] and [makenote] do not respond to tempo messages.)

    Pd doesn't have a global transport. You could make your own bars/beats counter and [send] those values around in the patch. (I'm not sure if you need a master scheduler -- if so, there's one in https://github.com/jamshark70/hjh-abs .)

    This appears to handle the different subdivisions.

    pd-max-time-notation.png

    24-0512-time-notation.pd

    hjh

    posted in technical issues read more
  • ddw_music

    @KMETE said:

    In Max MSP when using Mac/pc the [makenote] object is using the internal sound engine of the computer(?)

    No, [makenote] doesn't send any MIDI information out. It only generates data internally, inside Pd/Max.

    It's [noteout] which uses some device. So this is what you would configure for the desired MIDI output.

    But you'd also need to run something in Linux to play the MIDI sounds. There's no default "GS wavetable" in Linux. For that, I don't know, I always avoided default MIDI playback in Mac/PC. It might be easier to roll your own note player in Pd.

    hjh

    posted in technical issues read more
  • ddw_music

    @whale-av said:

    In Gem you will need the [pix_film] object to play the video. It has a frame input.

    Be aware though, random frame access in [pix_film] can be slow if the video is high-resolution, and if it has a large gap between keyframes. I had some luck with using ffmpeg to re-encode with smaller frame sizes and a key frame every other frame (key frames are big, so this could make a larger video file).

    hjh

    posted in technical issues read more
  • ddw_music

    @ChicoVaca said:

    So, from what I understand, it's not reading the actual sample rate, that's what I'm not understanding. My sample rate is set to 44100Hz in preferences.

    [soundfiler] is supposed to output the sample rate of the audio file, not the sample rate of the audio hardware.

    There is no guarantee that every sound file will match the audio system. Nor is there any guarantee that every sound file's sample rate will match that of every other file (so "soundfiler doesn't always read the same sample rate" is reasonable and expected behavior when audio files exist at different sample rates -- you should not expect to do one set of calculations that will work for every file, unless you have ensured that all files have the same sample rate).

    I created some abstractions to handle this, because I find Pd's native interface to be tiresome, but it's very late where I live, maybe an example tomorrow (or search the forum for hjh-abs).

    hjh

    posted in technical issues read more
  • ddw_music

    "The devil's in the details" and the particular detail is "equal tempered."

    Can you show me a patch that, say, generates all 12 equally tempered tones starting with middle C from 1 phasor?

    3:1 is not an equal tempered frequency ratio -- it's a justly tuned octave+fifth. The 12ET octave+fifth is 2.9966141537533 (approximately, since it's a fractional power of 2, thus irrational).

    The [*~] --> [wrap~] approach will definitely have sync artifacts for non-integer ratios. Not sure what Max's [rate~] will do.

    hjh

    posted in technical issues read more
  • ddw_music

    @Obineg said:

    i dont see the need for that "until loop"

    While / until is an incredibly valuable concept in all types of programming, including patching, and this problem is an ideal case for it.

    hjh

    posted in technical issues read more
  • ddw_music

    @starpea223 said:

    I have a project due, when I opened up my patches today gem win is broken.
    All other objects are still creating. Though now my gem window is opening blank instead of with image.

    What Pd version?

    What Gem version?

    Which OS and version? (Because this type of issue is likely to have a different solution depending on OS -- the core of [gemwin] is different in Mac, Windows and Linux.)

    Are there any errors in the Pd console window when you open the patch?

    Without details, nobody can help. (With details, there's still no guarantee, but at least there's a chance.)

    hjh

    posted in pixel# read more
  • ddw_music

    @OtherMichael said:

    The problem is the fact that D05 has two instances of the D02.adsr abstraction, but the instances use the same remote message without the unique $0 identifier.
    So to fix, just change "s line" to "s line-$0" and similar for receive objects.

    Good catch!

    Devs don't necessarily follow the forum very closely, so an "unofficial" bug report here might not get noticed.

    Bug reports on github are likely to get attention faster.

    Pull requests -- proposing a concrete fix in a format that can be merged in easily -- would fix it even faster --

    So I just did that: https://github.com/pure-data/pure-data/pull/2247

    hjh

    posted in technical issues read more
  • ddw_music

    @seb-harmonik.ar Perfect example of what I call "initialize -- run -- finalize," organized by the [t] at the top. I'd call it "textbook" except... did anybody write a textbook about algorithms in patchers?

    hjh

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!