Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play whole sample once pressed #2255

Open
LocoMatt opened this issue Aug 12, 2015 · 7 comments
Open

Play whole sample once pressed #2255

LocoMatt opened this issue Aug 12, 2015 · 7 comments

Comments

@LocoMatt
Copy link
Contributor

Hello, some time ago I noticed that bnb editor uses special short note that once played plays whole sound. I'm not into using bnb editor and I prefer to use AFP in song editor. Usually fitting note length to sample length is annoying. Well, it is possible to add this "note" to normal piano roll (selector normal/"bnb note")? Or maybe add additional option in AFP - like - play whole sample once pressed?

@LocoMatt LocoMatt changed the title BnB editor "note" BnB editor "note" /request/ Aug 12, 2015
@tresf
Copy link
Member

tresf commented Aug 12, 2015

@LocoMatt duplicate of #1592 I believe.

@LocoMatt
Copy link
Contributor Author

@tresf Well I'm not sure what did they mean but it seems that they can't play whole sample in bnb editor. I just want to propose one shot playback for song editor.
bnb
In the picture you can see 1st normal note that is as long as sample is, 2nd is copied form bnb editor (plays whole sound) and 3rd is just a piece of full sound. I would like to see this 2nd note in pianoroll without necessity of copying it form editor. Eventually add an option like this to AFP but it looks like more job to do (I think both things need a lot of work but we arleady have one of them inside lmms)

@musikBear
Copy link

uhoh -this one interest me tremendously!
I have already proposed a similar enhancement
There are several important things here:

  • Currently no-length-notes are bugged. The do NOT play the whole sample, only part of it This fact (Zero-length beat notes end too soon #2074) and the need for a re-furbish of no-lengts-notes, leads to This:
  • Imagine that these no-lengts-notes ALWAYS was created in EXACT the length of the length of AFP user set length-value, and that no-lengts-notes had a feature that would always make them succeed the previous no-lengts-note! -eg, ignore Q (it can be done manually already)

That would create a sample-tracker!! +!
It would be an absolute stunning addition to lmms
Lmms would have sony-acid functionality! Real loop-sampler!
I would love that <3

@grejppi
Copy link
Contributor

grejppi commented Aug 13, 2015

@musikBear
2074
Please.

@musikBear
Copy link

:p sure must have slipped under my finger

@michaelgregorius
Copy link
Contributor

I think the best idea would be to get rid of these special short notes or no-length-notes and to implement a solution in the AFP as was also proposed by @LocoMatt. Something like an option "Stop sound on note-off" or similar.

The behavior might be as follows:

  • The option is not selected: the sound will play until a new "note on" event is received or until it finishes. The instrument ignores "note off" events in this mode.
  • The option is selected: the sound will stop when a corresponding "note off" event is received (or when it is finished).

This is also how other DAWs and synthesizers implement it. The instrument gets a stream of MIDI messages from the DAW and it is up to the instrument to decide how to interpret these messages. In general this means that the behavior is configured in the instruments and not encoded in some arcane global way in the MIDI notes which is not really discoverable by the user.

However, I am not even sure whether the MIDI events themselves make their way into the instruments in LMMS. If I remember correctly there is some global code which starts and ends notes using the abstract instrument interfaces (NoteHandle, NotePlayHandle, etc.).

All in all I think that following the no-length-note path any further will only lead to more strange code and more pain in the future.

@tresf tresf changed the title BnB editor "note" /request/ Play whole sample once pressed Aug 22, 2015
@tresf
Copy link
Member

tresf commented Aug 22, 2015

Marking this as the replacement to #1592 because it encompass the enhancement as a whole, rather than for a particular instrument plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants