How do you load samples into the sampler via scripting?



  • Can you load samples into the sampler via scripting? The instrument I'm working on a project where we want to create an interface that the user uses to load their own samples. We just want to allow the user to load a single wav file.

    "Remove" would also be nice.


  • administrators

    There is the "Audio Loop Player" sound generator which can load a sinlge audio file and play it either as loop or as pitched note:

    HiseSnippet 1117.3oc4W0taiTCE0SRFUZfxxBKR7SqH9QVoR6jzVVDHDosaKDneD0TJHgPKtybShU8XG4wS6FVsOV7dviBuAf87QlYRl1lrr.RriTThOWe8btWeuG6zSJbgf.gDY81mOYLfrdG69S3pQ6OhP4ntOEY8t1GSBTfDGCs2jwjf.vCYYU8qM.VqVCE87Ge0dDFg6BYPHzEBpKbD0mpxP+kNeGkwNj3AmS8yM6s6z0Uv2WvDgZ9T01AMl3dEYHbBwLsJ1nqovMAHKG6sZug7pVW9q6twLOe+2rmFaXQbjanTBb0EZ2QV1V+o9wx9.OpRH6qHJPul16I7lzej3Ft4U2BcAMfdIChGzWyoXFcnf4YBdCZWtNsLf3BScyAg1eDk40KMsFfzqburjb03j7irOl5QmhmkreuHC3LOxmtspTjx0VVJWJ8rxQuZwz6g18ckzwpLKFt89In2B6hMhp7aUr2WnyLb0F9jqfCk5ASyTM2wwYcbaGmG+E0060AJ70DId2POp3GHWCCDRe7WhS8m34UvTyFEF1vrRlO5EayMw+z21+zSJtV+b8zkJ.LQyXPpnPflS9lIO+58h0piwMtg5oF03ywa2dm0i.FAzgiTZjVa0NFYbZNnqmFNdcvGIDiw8XjIfrwZ0eYBs1rLdkE7GQtDXEC5HnlMh9JIHa8jBQYjo6M5RWf3nRAO2DBMNyDKXWF08JrfiUi.7Mo4dk.yDDOLgiIQgz.JCZr9LYEmYxJo.9gLEkQ4fFa.gE.ylDho8fPtqhpe0B9IBEbJu4iq+h5qV+k0m0xfAkYxD0RAiAxxrZzTj2gaM4g9WBx00IeVHjNOc6Qwlq5KVyka7NPtIJ3c4T0oigoiiCxTDGzzfKOTVPkGMJXJYZYPy2QiRpJz81URlNxZEUTm8GlzCWnZDQ0MvOvtHVT1IuRdNYhOvdt5cjjvGB5jmTYTXMNDgb.2KcroTZpRNZJypFyr0RXVTIRDiVwN92ywDz7JVZcSgWHinJJlZNfJwftFnfbkQRhGPUSxe.1Rnv5bKGJTx9wBR2GZ2ipbGUNeqTBeMav+Cy2jyqVy9fAC.WUFYqYe3O9pd3zqFUdPJUhp8LkdP74RkUMd62R42e8eKE8Elb06ZP9Jonsxyk56uP4Cy+pLr7.NQmJ7xO+yDBkQUHCqWmCy2v3aBh3FIexyS+4rpVK3sXJ1Wja9281gUs+CtJyq+Fs+95BUWL5dO21ZkTN1m5OlokJuFX5p5DwfmBCH5ySmhdujbWkRWtkg7nNmALfDjql5i6bj9zYhb1p0kH9Zs3w2csG7Q1wzEaZtv++Pit5alZzmIBUZQtiIJI0HLcRnees1nKnYBmCLirjUEy8RhG6jJd0G3dNo+erDisLisRL1J03+JuCehqT7L236kXpkeqHDcbyiDgWU+Gg0iwsRuQhI23q03dlqqIY+IsPnx8n8R6wVKsGauzdryR6wmtzd7jk1iO6N7vbfxtgJgebqGB8WNfUhHA
    

    You can connect a AudioWaveformDisplay from your script interface to it. It's not 100% what you need, but it might be a good starting point (let me know if you get along with this).


Log in to reply
 

0
Online

264
Users

687
Topics

4.4k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.