Page 1 of 2

Sample player issue.

Posted: Tue Mar 03, 2020 7:30 pm
by lalalandsynth
Getting back into FS , bit rusty must admit.

I am using a sample player and I need it to play whenever the daw is playing.

The sample player i am using (EXO drum sampler) is midi triggered via a midi to poly so I am using the "Is Playing" prim via a a trig to midi to play and stop whenever daw is playing/stopping.

this is a bit dodgy to be honest ...
It should play a drum loop and now it seems to skip the first beat when hitting play , suspect my midi trigger thingy ..?

In any event I would like to trigger the sample player without this midi trigger middleman.
I am not very familiar with the poly stream , have not really made any synths.

Can I somehow trigger the midi to poly or even the poly driven counter with a simple trigger rather then using the MIDI?

If I am not making any sense , I can try and explain better ?

Thanks everyone

Re: Sample player issue.

Posted: Tue Mar 03, 2020 8:52 pm
by tulamide
That would be interesting for me to know as well.

As far as I understand, the polystream is only active while needed. MIDI can trigger it's usage and an impulse can as well (see Analyzer prim). But how to trigger it from when the Daw starts, is a mystery to me. I'm just sure that isPlaying should be avoided, because it's green and therefore unreliable regarding timing.

I'm eager to read what the gurus have to say :)

Re: Sample player issue.

Posted: Tue Mar 03, 2020 9:04 pm
by lalalandsynth
Ah, of course , the isPlaying is green ! that might be the source of my problems ...in any event , a green will never work properly..so yeah. Also, using something i hacked together to make a midi note from a trig...green again.
This will never work, need a sample accurate start somehow ?

Wonder how you can play something and start sample accurate ?

Re: Sample player issue.

Posted: Tue Mar 03, 2020 9:04 pm
by MichaelBenjamin
.

Re: Sample player issue.

Posted: Tue Mar 03, 2020 9:08 pm
by lalalandsynth
edit

Re: Sample player issue.

Posted: Tue Mar 03, 2020 9:11 pm
by lalalandsynth
I could test if it is the isPLaying that is messing up the first beat and the render by making a temp midi input , triggering via midi , that should be sample accurate , as opposed to using the isPLaying.

TESTED: Works when I use a midi note in Reaper to start play rather then the isPLaying...so the isPLaying is the culprit.
Which i should have known to be honest :)

Conclusion/Solutions :

1 . Trigger a MIDI note within the schematic to start the sample player from a sample accurate isPlaying ?
2. Somehow trigger the counter with something else then a midi note ?
i do not want to use an "external" midi track.
In both cases I would need a sample accurate start ? I fail to see how someone can make a midi sequencer without that , unless i am overlooking something ?



Sidenote : on the isPlaying "Outputs trigger , when transport stop event occurs" does not work.
Not in Reaper at least
Can be remedied with a bool to false on the "True if host is playing"

Re: Sample player issue.

Posted: Tue Mar 03, 2020 9:51 pm
by lalalandsynth
MichaelBenjamin wrote:there's also a stream version of is_playing, aswell as a stream ppq pos.
you could make a test vst which prints out that stuff from these to see how your host handles these.


Where can i find this stream version of isPlaying ?

Re: Sample player issue.

Posted: Tue Mar 03, 2020 11:36 pm
by MichaelBenjamin
.

Re: Sample player issue.

Posted: Tue Mar 03, 2020 11:59 pm
by lalalandsynth
Oh I see, no such thing that I can find .

Re: Sample player issue.

Posted: Wed Mar 04, 2020 12:23 am
by trogluddite
lalalandsynth wrote:Oh I see, no such thing that I can find.

I have it here in both FS 3.0.6 and the latest 64-bit Alphas, so there's something wonky with your installation or toolbox filters/tags, I would guess. Does it show up OK in this schematic?
is_playing_stream.fsm
(201 Bytes) Downloaded 933 times

(NB: If you can see it, you might need to put it inside a module to add it to your toolbox - I don't think primitives are .hom files like modules are).

To address the wider question: I don't think there is any way to make a useful poly voice without MIDI. The Analyser will let you collect samples following a trigger, but you can't mix the same poly section down to blue mono. FS won't even allow the connection of both an Analyser and a Poly-to-Mono to the same poly section (I just tried it by forcing the connection with CTRL-ALT, but nothing shows on a scope connected to the Poly-to-Mono when the Analyser is triggered with an oscillator source). AFAIK, this is because the Analyser doesn't work at sample rate, but just collects all of the samples "off-line" as fast as it will go.

The best solution would depend on how many simultaneous loops you need and whether having code always running at maximum voices would be a problem. For four loops or fewer, mono4 might be a lot easier. However you could use poly with "dummy" notes generated internally just to set how many loops to play, but a custom sample counter which doesn't use the note-ons/note-offs for timing (just a reset by the isPlaying, PPQ-sync, or whatever).