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

Sample selection #291

Closed
wants to merge 55 commits into from
Closed

Sample selection #291

wants to merge 55 commits into from

Conversation

blablack
Copy link
Contributor

This pull requests enables samples to be selected differently in addition to the usual velocity based:

  • Random for the same velocity: Hydrogen will be randomly a sample in all the ones set for the velocity of the note
  • Round Robin for the same velocity: Hydrogen will loop through the list of samples available for the velocity of the note

Conflicts:
	src/core/include/hydrogen/basics/instrument.h
	src/core/src/basics/instrument.cpp
	src/core/src/basics/sample.cpp
	src/core/src/sampler/sampler.cpp
…nto sample_selection

Conflicts:
	data/img/gray/instrumentEditor/layerTabsupernew.png
…nto sample_selection

Conflicts:
	src/core/include/hydrogen/basics/song.h
@trebmuh
Copy link
Member

trebmuh commented Feb 28, 2016

@blablack I'm happy to help testing this. That said, this is a bit out of the way I'm using Hydrogen usually and I don't quite understand the workflow involved in. Would you mind to explain a bit deeper the intention? (which might be easier in french if you want)

@blablack
Copy link
Contributor Author

blablack commented Mar 1, 2016

@trebmuh thanks for helping.
What I did is instead of explaining here what the functionality is, I updated the related documentation ticket (https://github.com/hydrogen-music/hydrogen/issues/247) - thing I should have done in the first place anyway :)

@trebmuh
Copy link
Member

trebmuh commented Mar 2, 2016

@blablack: sweet, thanks for pointing me to the right direction. I'll be trying to have a look to this when I got a bit of time for testing and will keep you in touch.

@@ -196,6 +196,7 @@ bool Sample::apply_loops( const Loops& lo )
ERRORLOG( QString( "count %1 < 0 is not allowed" ).arg( lo.count ) );
return false;
}
//if( lo == __loops ) return true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the comment intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No...well yes...but no...

The line was commented out anyway - but you removed it all together in
https://github.com/blablack/hydrogen/commit/5b20e0543aaa31d9814250796c339cd76c2d0dea

I looks like it didn't go through during a merge...

On Sat, Mar 26, 2016 at 11:29 AM Sebastian Moors notifications@github.com
wrote:

In src/core/src/basics/sample.cpp
#291 (comment)
:

@@ -196,6 +196,7 @@ bool Sample::apply_loops( const Loops& lo )
ERRORLOG( QString( "count %1 < 0 is not allowed" ).arg( lo.count ) );
return false;
}

  • //if( lo == __loops ) return true;

Is the comment intentional?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/hydrogen-music/hydrogen/pull/291/files/d9cf06ecea6c676553607db7cc76f72e376935a6#r57512542

mauser added a commit that referenced this pull request Mar 28, 2016
@blablack
Copy link
Contributor Author

blablack commented Apr 4, 2016

@trebmuh any news on the testing? I would be really curious to know how others than me find the functionality.

@mauser
Copy link
Member

mauser commented Apr 7, 2016

Hi!!

About the new Graphic for the instrument tab: Could you save some height there? I feel bad for complaining here again about the height (as with the hihat group feature), but this is certainly an issue at the moment :-/

@blablack
Copy link
Contributor Author

@mauser I am not sure what I can do about the height here.
Layer tab is already busy, there isn't much space anywhere else for the combo box.
There is the option to put the combo box on the instrument tab, but that will only make it longer moving the problem on that tab.

Out of curiosity, why do you consider the height being an issue?

@mauser
Copy link
Member

mauser commented Apr 10, 2016

Hi,

attached is a preview of hydrogen on my laptop (1280x800). On the initial startup, i can't see the end of the current sample editor (main branch). If i want to view the old sample editor completely, i have to pull the lower part of hydrogen's view up to "Pattern 8" of the SongEditor (i hope that you understand what i mean :-/). If i use your branch with the new dropdown box, i have to pull the lower part up to "Pattern 6".

And this is just with 800px screen height.. We had some requests coming from people who want to use hydrogen with screens that have a height of only 600px (mostly netbooks). As a consequence, we've tried to keep the minium screen height as low as possible. Hasn't really worked out on the sample tab, as you've already said :) There's also the "Tabbed interface mode" for such extreme situations, but that breaks usability a bit..

I've been tinkering a bit with this problem at the weekend and thought about re-designing the whole section on the right side. It would save some space if we create a tabbed panel with three tabs: instrument properties, sample/layer properties, soundlibrary browser. Maybe there could be also a fourth tab for advanced instrument settings (i'm think mostly about your midi additions and the midi out setting and the apply velocity property). This would also give us the possibility to some additional descriptions to the UI (at the moment is unclear what the channel/note properties are used for midi out, unless you're looking at the tooltips). Just to make it clear: I don't think that this has to be done in this pull request. If the situation can't be improved with the current layout, i have no problems with accepting this flaw and fixing it afterwards with a new layout of the whole section..

hydro

@blablack
Copy link
Contributor Author

@mauser As far as I can tell, I can't really see an effective way to fix the current layout.

I guess with all the changes in 0.9.7 there is effectively a need to modify the layout all together (similarly to a menu redesign as in #330).

One other "easier" option is the bitwig way of making the whole right column go all the way up over the patterns...

@blablack
Copy link
Contributor Author

Has anybody been able to use the functionality?
I would be very interested in feedback if any!

@blablack
Copy link
Contributor Author

blablack commented Jul 4, 2016

@mauser as the height issue cannot really be solved efficiently right now without a bigger redesign of Hydrogen, do you have any other objection to merge this pull request into the master branch?

If you have any other feedback let me know!

Thanks in advance,

@mauser
Copy link
Member

mauser commented Jul 11, 2016

@blablack :

Just looked again in the pull request (merging it now) and i'm, wondering why you commented the codeblock at src/gui/src/InstrumentEditor/LayerPreview.cpp:194 , or to be more precious: I'm wondering what the initial intention of the code was :) Can we remove that part?

mauser added a commit that referenced this pull request Jul 11, 2016
@mauser mauser closed this Jul 11, 2016
@trebmuh
Copy link
Member

trebmuh commented Aug 8, 2016

Hi @blablack: I didn't tried it yet (I'll soonish), but reading at https://github.com/hydrogen-music/hydrogen/issues/247 , I really love the intent!
Will tell you about my experience with this feature soon.

@trebmuh
Copy link
Member

trebmuh commented Aug 8, 2016

@blablack: by the way, do you know of a drumkit which include several samples for the same layer? It would then save me a drumkit construction.

Edit: nevermind, I found my way in tweaking the layers in an existing one.

@trebmuh
Copy link
Member

trebmuh commented Aug 8, 2016

OK, tried it and I've got to say that this new feature is more than awesome! I really love it, thanks for this! Kudos!

@thijz
Copy link
Member

thijz commented Aug 11, 2016

now all we need are drumkits with multiple samples !
i feel a new drumkit competition coming up :-D

@trebmuh
Copy link
Member

trebmuh commented Aug 11, 2016

👍
sweet @thijz !

@Adesin-fr
Copy link

For a multiple-samples drumkit, we can use SMMDrums : https://smmdrums.wordpress.com/
The kit is great quality, and free of use...
Multiple samples on multiple velocities, great base for a new kit !
The zip is giving a biiiig bunch of WAV files, but we can convert them in FLAC or OGG, trim them done (they are all almost 10 s long...) and we should go down to about 500 MB.

@thijz
Copy link
Member

thijz commented Aug 22, 2016

@LemarinelNet : seems like an awsome source for samples !
a couple of years ago i created a py script that creates a h2 drumkit starting from a bunch of samples
maybe this tool (or an other tool, i know that there are similar scripts out there) can be used as the basis for creating a mega-multilayered drumkit ?
see http://audio-and-linux.blogspot.be/2012/10/hydrogen-drumkit-creator-script-v5-is.html

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

Successfully merging this pull request may close these issues.

5 participants