Coder Social home page Coder Social logo

Comments (2)

cyberboy666 avatar cyberboy666 commented on June 3, 2024

thats a good question.

in the case of samples you can already have unlimited slots. they are broken out over 'banks' (each of 10 slots) that are displayed on the screen. but you can have as many as you like

if you had (for example) 7 banks full of 10 samples each it would be possible to write a mapping that triggered each slot with a press of your launch pad button

you would just need to write a small helper function in actions.py that takes the bank and slot number from the mapping - (something like this might do it although i havnt tested):

def _load_this_slot_and_bank_into_next_player(self, slot, bank):
    if len(self.data.bank_data) <= bank:
        self.message_handler.set_message('INFO', "bank %s doesnt exist" % bank)
    else:
        self.data.bank_number = bank
        self._load_this_slot_into_next_player(slot)

and then all you need to do is write the specific functions that are set in the json mappings:

def load_slot_0_bank_3_into_next_player(self):
    self._load_this_slot_and_bank_into_next_player(0,3)
...

the case for unlimited shaders is a little bit more tricky since they dont have unlimited banks like samples do. shaders have 3 layers (which interact with each other and are a bit more 'hardcoded' into the backend) - it would be possible to increase number of layers although requires more changes. the other option would be to increase the size of each layer - the only reason it is 10 is coz thats what can fit on the display... maybe a way to 'scroll down' the layer on the display would make sense in this case. or a quicker more hacky approach would be just to hard-code all the shaders into one big layer that you cant see or change. but can switch between with ur launchpad...

from r_e_c_u_r.

tandy-1000 avatar tandy-1000 commented on June 3, 2024

I see, thanks for the quick reply, seems like I'll have to explore this a bit more.
If python had meta-programming features like nim that would make the specific functions a lot easier ...
I understand now, the way I understood it was that shaders were "played" similarly to samples, that makes sense.
Thanks!

from r_e_c_u_r.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.