Haha the easter bunny has delivered.
-
@d-healey said in Haha the easter bunny has delivered.:
Which commands are currently available for the
process
function? I had a look through the source but didn't see a list.I don't think there is one, you can make your own functions with processCustom but I'm "patiently" waiting for Christoph to implement the official partial filtering methods cause my hacky ones keep crashing HISE lol
I see I can play back a buffer using Engine.playBuffer() but is there a way I can stop playback?
The mouseUp event in the top panel has a "stop" button by playing an empty buffer (fix by @ustk above):
Engine.playBuffer([], "", 0.0);
-
I don't think there is one,
Well we have
dilate
, I only know because it's used in the toolkit, but I haven't seen it in the code specifically.The mouseUp event in the top panel has a "stop" button by playing an empty buffer
Ah that's clever.
-
@d-healey said in Haha the easter bunny has delivered.:
Well we have
dilate
, I only know because it's used in the toolkit, but I haven't seen it in the code specifically.Hopefully the easter bunny visits twice this year
-
@iamlamprey said in Haha the easter bunny has delivered.:
The mouseUp event in the top panel has a "stop" button by playing an empty buffer (fix by @ustk above):
Engine.playBuffer([], "", 0.0);
Hmm this isn't working for me, the file just plays until the end.
-
I'm not actually sure how that code works, since the docs only ask for 2 params, you could try different combinations of the [], "" and 0.0 lol
Engine.playBuffer(var bufferData, var callback)
If that doesn't work there's a few bits in the source referencing stopping the buffer, specifically
void MainController::stopBufferToPlay()
which is called when destructing a buffer object, but there isn't a wrapper for it, and I'm not sure how safe it would be using that intentionally
-
@iamlamprey said in Haha the easter bunny has delivered.:
I'm not actually sure how that code works, since the docs only ask for 2 params, you could try different combinations of the [], "" and 0.0 lol
Engine.playBuffer(var bufferData, var callback)
Does it work for you?
Docs show 3 parameters for me
-
@d-healey said in Haha the easter bunny has delivered.:
Does it work for you?
ustk's code above works for me in the context of the Loris Toolkit's preview waveform panel, it was crashing on mouse up, now it fades out the audio/stops playback on mouseup.
Docs show 3 parameters for me
Ah I always refer to https://docs.hise.audio/scripting/scripting-api/engine/index.html#playbuffer , the HISE api has 3
I'm not sure why the buffer isn't stopping for you, I think this might be turning into a @Christoph-Hart problem..
-
@iamlamprey Probably a Linux thing. I'll see if I can spot anything in the debugger.
-
@Christoph-Hart said in Haha the easter bunny has delivered.:
@iamlamprey I'm currently extending the Loris API to include the more advanced functions like collate, distill and sift (love the names), they do address the problem of having too many partials, but as David said, if you reduce them to a common denominator the sound gets a bit more static.
Would these extra functions be hard for me to implement? I know you're busy with the MIR stuff atm
-
@iamlamprey also waiting for it! Fingers crossed
-
New commit does what I was trying to do much better:
//make a var outside the rebuild function's scope var frequencies; // probably use a better name lorisManager.analyse(CURRENT_FILE, rootFreq); // line 125 in LorisProcessor.js frequencies = lorisManager.createSnapshot(CURRENT_FILE, "frequency", 0.1); // new method
the string parameters are "frequency", "gain", "phase" and "bandwidth", the time parameter is in seconds
The method returns an array you can inspect:
Once the dilate stuff is ready (if it's not already, i haven't checked) it should be pretty simple to reconstruct the sound in a SNEX node, I think the real CPU struggle will be polyphony...
-
@iamlamprey even monophonic would be good..
-
I haven't been able to get this working lately on my Apple Silicon system (tried native and Rosetta). I did try the latest release dylibs as well as pulling the source and compiling myself. In both cases it's getting caught on:
So getting the "Can't open Loris DLL" message ultimately. I even tried signing the dylibs to avoid that quagmire... so the files are accessible anyway.
I've verified it's trying the correct path on my system, the files are in place.
I was able to build the toolkit project despite this, but it's complaining about function pointers when trying anything.
Would love to get Loris working again. Any ideas?
-
Hi guys, I finally have some time to try loris but when loading the test project, HISE crashes and I get this error in Xcode :
// Yes, I know it's legal for a unix pathname to contain a backslash, but this assertion is here // to catch anyone who's trying to run code that was written on Windows with hard-coded path names. // If that's why you've ended up here, use File::getChildFile() to build your paths instead. jassert ((! p.containsChar ('\\')) || (p.indexOfChar ('/') >= 0 && p.indexOfChar ('/') < p.indexOfChar ('\\')));
Ok I understant whant that means but I have no clue about how to solve it...
It happens on PC tooI'm on the commit from July 18th
-
@Christoph-Hart I'm attempting to compile the loris toolbox project but I'm getting some errors about
snex::jit::String
.In file included from /media/dave/Work/Tools/HISE/hi_scripting/hi_scripting_01.cpp:95, from ../../JuceLibraryCode/include_hi_scripting_01.cpp:9: /media/dave/Work/Tools/HISE/hi_scripting/scripting/api/ScriptLorisManager.cpp:143:63: error: ‘snex::jit::String’ has not been declared 143 | juce::var ScriptLorisManager::createEnvelopes(juce::var file, snex::jit::String parameter, int harmonicIndex) | ^~~~ /media/dave/Work/Tools/HISE/hi_scripting/scripting/api/ScriptLorisManager.cpp:143:11: error: no declaration matches ‘juce::var hise::ScriptLorisManager::createEnvelopes(juce::var, int, int)’ 143 | juce::var ScriptLorisManager::createEnvelopes(juce::var file, snex::jit::String parameter, int harmonicIndex) | ^~~~~~~~~~~~~~~~~~ In file included from /media/dave/Work/Tools/HISE/hi_scripting/hi_scripting_01.cpp:64, from ../../JuceLibraryCode/include_hi_scripting_01.cpp:9: /media/dave/Work/Tools/HISE/hi_scripting/scripting/api/ScriptLorisManager.h:76:9: note: candidate is: ‘juce::var hise::ScriptLorisManager::createEnvelopes(juce::var, juce::String, int)’ 76 | var createEnvelopes(var file, String parameter, int harmonicIndex); | ^~~~~~~~~~~~~~~ /media/dave/Work/Tools/HISE/hi_scripting/scripting/api/ScriptLorisManager.h:38:7: note: ‘class hise::ScriptLorisManager’ defined here 38 | class ScriptLorisManager: public ConstScriptingObject, | ^~~~~~~~~~~~~~~~~~ In file included from /media/dave/Work/Tools/HISE/hi_scripting/hi_scripting_01.cpp:95, from ../../JuceLibraryCode/include_hi_scripting_01.cpp:9: /media/dave/Work/Tools/HISE/hi_scripting/scripting/api/ScriptLorisManager.cpp:156:67: error: ‘snex::jit::String’ has not been declared 156 | juce::var ScriptLorisManager::createEnvelopePaths(juce::var file, snex::jit::String parameter, int harmonicIndex) | ^~~~ /media/dave/Work/Tools/HISE/hi_scripting/scripting/api/ScriptLorisManager.cpp:156:11: error: no declaration matches ‘juce::var hise::ScriptLorisManager::createEnvelopePaths(juce::var, int, int)’ 156 | juce::var ScriptLorisManager::createEnvelopePaths(juce::var file, snex::jit::String parameter, int harmonicIndex)
Also I notice that the latest version of tool box doesn't work in the latest version of HISE. It always synthesises 0 partials, and the preview playback doesn't work with the short samples (cymbals for instance), but does with the longer ones.
-
@Christoph-Hart Loris toolbox is still broken
-
what happened to Loris? if i uncheck Preserve Noise it just synthesizes nothing now
i haven't touched HISE in 6 months so I'm not sure which commit(s) to rollback to get everything playing nice
-
@iamlamprey yeah it's broken, see my post above
-
@d-healey reverting to the 2.0 version of Loris fixed it for me, thankfully i had that backed up
let me know if you need the dll
-
@iamlamprey Do you have the link?