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

Shouldn't saving preset save FX channel as 0? #3182

Closed
karmux opened this issue Dec 27, 2016 · 8 comments
Closed

Shouldn't saving preset save FX channel as 0? #3182

karmux opened this issue Dec 27, 2016 · 8 comments

Comments

@karmux
Copy link
Contributor

karmux commented Dec 27, 2016

When you save some instrument preset then also FX channel is saved.
If you listen previously saved preset in another project it plays either silence (when FX channel does not exist) or some random effects that happen to be on that channel.
If channel were saved as 0 then it plays user created presets consistently with factory presets.
Currently one can solve this by changing channel to 0 before saving preset.

@tresf
Copy link
Member

tresf commented Dec 27, 2016

Shouldn't saving preset [files] [default the] FX channel [to] 0

👍

@softrabbit
Copy link
Member

I disagree. I think this should be handled through ignoring any saved FX channel on load. That way you won't have to reset the channel when you load a preset into a track you already assigned to a channel.

@Umcaruje
Copy link
Member

I agree with @softrabbit we shouldn't save FX channel information in presets at all.

@tresf
Copy link
Member

tresf commented Dec 30, 2016

Well @softrabbit is saying to go ahead and save it, just ignore it on load.

@Umcaruje
Copy link
Member

Well, maybe the best of both worlds? Save with FX0, to avoid problems on preview and ignore on load.

@tresf
Copy link
Member

tresf commented Dec 30, 2016

@Umcaruje I'd be more interested to see if we can abolish the FX channel properties from the XML without causing a crash. Might hit two birds, so to speak.

Edit: Tested, works. 😄

- <instrumenttrack pan="30.0333" fxch="1" usemasterpitch="1" pitchrange="2" pitch="-90.9667" basenote="46" vol="48.1">
                                 ^-------
+ <instrumenttrack pan="30.0333" usemasterpitch="1" pitchrange="2" pitch="-90.9667" basenote="46" vol="48.1">
                                 ^------- (REMOVED)

screen shot 2016-12-30 at 5 37 15 pm

Can be shimmed in the saveSettings function of the InstrumentTrack class:

https://github.com/LMMS/lmms/blob/master/src/tracks/InstrumentTrack.cpp#L1561:L1594

Edit 2: @softrabbit this seems to also preserve the existing FX channel selection when dragged over an existing instrument button.

@softrabbit
Copy link
Member

softrabbit commented Dec 31, 2016

Ideally the fix should:

  • preserve channel selection when loaded into an existing track
  • work with old presets (just not saving the channel doesn't)
  • not break preview

... any more?

@tresf
Copy link
Member

tresf commented Dec 31, 2016

Further testing shows some unexpected behavior when the preset with missing channel is dragged.

It appears LMMS does some form of internal caching and has a tendency to reset it anyway after preview. This request may be two-fold.

tresf pushed a commit that referenced this issue Apr 16, 2017
* Fixed #3182. Always using master channel for preset previews.
@tresf tresf closed this as completed in 2df5682 Apr 16, 2017
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this issue Jun 28, 2022
…MS#3503)

* Fixed LMMS#3182. Always using master channel for preset previews.
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this issue Jun 28, 2022
…MS#3503)

* Fixed LMMS#3182. Always using master channel for preset previews.
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

4 participants