Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 15 2020 03:00

    osakared-build on main

    Updated haxe version (compare)

  • Aug 26 2020 19:28

    thomasjwebb on master

    (compare)

  • Aug 26 2020 19:25

    osakared-build on main

    Updated grig versions, added ge… (compare)

  • Jul 31 2020 20:58

    osakared-build on main

    Initial commit.. nothing to see… Added license More changes and 7 more (compare)

  • Nov 13 2019 05:02

    osakared-build on master

    Initial commit Add Gitter badge Merge pull request #1 from gitt… and 52 more (compare)

  • Nov 13 2019 05:00

    osakared-build on master

    Initial work on fmod js bindings Finished adding externs to Syst… Added disclaimer (compare)

  • May 09 2019 14:48

    osakared-build on master

    Switched to using haxelib versi… (compare)

  • May 01 2019 04:43

    osakared-build on master

    Added velocity sensitivity back… (compare)

  • May 01 2019 04:36

    osakared-build on master

    Removed files I have no idea ho… (compare)

  • May 01 2019 04:28

    osakared-build on master

    Switched to using entire block … Added EG to MonoFMSynth for a c… Made examples sound a little be… (compare)

  • Apr 30 2019 04:54

    osakared-build on master

    Fading in and out to prevent cl… (compare)

  • Mar 28 2019 04:48

    osakared-build on master

    Added separate fmsynth project (compare)

  • Mar 26 2019 03:07

    osakared-build on master

    Experimenting with simple singl… (compare)

  • Mar 25 2019 02:47

    osakared-build on master

    Updated haxe version and added … Added beginning of MonoSynth ex… Work on MonoSynth example (compare)

  • Mar 10 2019 18:43

    osakared-build on master

    Removed stuff that has been mov… (compare)

  • Feb 18 2019 20:07

    osakared-build on master

    Updated to reflect python pyaud… (compare)

  • Feb 17 2019 04:05

    osakared-build on master

    Added targets that have been im… (compare)

  • Feb 05 2019 06:08

    osakared-build on master

    Downgrading to old lix version … (compare)

  • Nov 28 2018 07:22

    osakared-build on master

    Updated docs with new capabilit… (compare)

  • Nov 15 2018 05:51

    osakared-build on master

    Updated documentation (compare)

Michael Schmalle
@teotigraphix
Yes!!! I am now using Grig with the UI framework I have used for years. I can tell you I am totally on this project. The fact I am playing a sine tone in a bad ass language using cross platform audio, I am happier then I have been in a long time. I think you and I have similar reasons for wanting this type of stuff.
I am going to be studying the frameworks for the next couple months and creating a bunch of small examples.
Rock on.
Thomas J. Webb
@thomasjwebb
Yeah https://grig.tech/demo/ works for me on multiple browsers on multiple computers and even my phone. It would be good to figure out why it might not work on all systems. One thing is midi won't work in Firefox since webmidi isn't implemented there. I'm glad your project is working though!
I haven't done anything new with trying to do bitwig in haxe but I think it should be pretty easy to use its java target for that purpose. Using its javascript target doesn't make sense (I tried that) since it's not regular javascript but just javascript bindings to java classes. I have been meaning to remake my javascript-based controller script in haxe.
Michael Schmalle
@teotigraphix
Well in that case I am guessing it might be an audio driver conflict or setting if it's all working for you. I am Win10 updated and Firefox Dev/Chrome updated.
I just tried again with FF and I still get only the Mic popup and after that obviously no connection.
Still get Error#500: Could not start audio source @ grig.audio.js.webaudio.AudioInterface.openPort:140 In Chrome as well.
I will keep this stuff in mind as I get going.
For kicks yesterday I ported this example; https://mdn.github.io/webaudio-examples/step-sequencer/
to Haxe HTML5 target so I could test the UI framework I am using.
image.png
So I rewrote the entire thing in Haxe with Feathers, the sequencer is working great and the whole UI is wired with beat callbacks and parameter changes. (took me 1 day)
I was thinking, this would be a really cool POC with Grig and to see how much can be implemented multi platform since it's a known example.
Thomas J. Webb
@thomasjwebb
That looks awesome!
brusand
@brusand
hello how to build the sine sample haxe build.xml --js bin/Sine.js --main Main doesn t work
Thomas J. Webb
@thomasjwebb
Are you in the grig.audio repo? You don't need to specify main, the hxml already does that haxe build.hxml -js bin/Sine.js
brusand
@brusand
../../src/grig/audio/js/webaudio/AudioInterface.hx:114: lines 114-145 : Catch class parameter must be Dynamic
Thomas J. Webb
@thomasjwebb
Which directory are you in?
brusand
@brusand
/Users/bruno/grig.audio/examples/Sine
Thomas J. Webb
@thomasjwebb
What version of haxe are you using?
brusand
@brusand
4.0.5
Thomas J. Webb
@thomasjwebb
That might be too old. Probably needs to be at least 4.1 I have the version that's used for the automated tests in .haxerc
brusand
@brusand
it is better ;-)
brusand
@brusand
i am stupid but sine display nothing ?
Thomas J. Webb
@thomasjwebb
Oh yeah it’s just audio. Very simple hehe
Most of the examples don’t do much.
brusand
@brusand
i am trying to use grig with a featherUI app target to macos ... a long trip lol
Thomas J. Webb
@thomasjwebb
Oh awesome. If you look higher up in the chat, Michael is also making something using feathersui + grig, a step sequencer
brusand
@brusand
yes i saw. i have a stupid question, why there are 2 chanels in the audio callback ? and what is input and output channel ? if i want to get all the frequencies in a circular buffer, i have to add the both channel in it ?
and if i well understand , there a timestamp of capture in audiooptions ?
Thomas J. Webb
@thomasjwebb
Input is from the mic if you're connected to one and output is what goes into the speakers. It's 2 channels because it's stereo but it could be a different number if it's configured for a different number of channels. There is a timestamp so you can keep time even if there's a buffer underrun but it doesn't have true timestamps in environments that don't supply it (like webaudio and openal).
brusand
@brusand
hi thomas, i have some isssue with your audio inout buffer. When i connect to the mic, i have a lot of noise, even when no sound, i have some input in the buffer. How can i filter them ?
'''
private function audioCallbackWithInput(input:grig.audio.AudioBuffer, output:grig.audio.AudioBuffer, sampleRate:Float, audioStreamInfo:grig.audio.AudioStreamInfo)
{
var channel = output.channels[0];
var dataBytesArray:ByteArray = new ByteArray();
dataBytesArray.clear;
for (i in 0...channel.length) {
//phase += 0.1;
//channel[i] = Math.sin(phase) 0.3 + input.channels[0][i] 0.3;
dataBytesArray.writeFloat(input.channels[0][i]);
}
input.clear;
this.callBack(dataBytesArray);
}
'''
Thomas J. Webb
@thomasjwebb
What does the noise sound like? Is it just ambient noise or is there any distortion to it?
Or is it harsh digital noise?
brusand
@brusand
i don t know
Thomas J. Webb
@thomasjwebb
Does it get noisier if you clap?
brusand
@brusand
i have some note during some silence (no claping)
how can i send snapshot ?
Thomas J. Webb
@thomasjwebb
Oh you could make a callback collect the buffers and write to a file. I might not have made an example of that. What OS are you in?
And what target?
brusand
@brusand
i am on mac os and send to circular buffer
oki i try to do that
Thomas J. Webb
@thomasjwebb
Oh ok. Tonight when I’m not working for a client I can look at it more.
brusand
@brusand
rophone.hx:79: -0.000473924184916541
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00028797693084925413
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00024772388860583305
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0002027826412813738
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0002715502923820168
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00020824780222028494
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00017355888849124312
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00031544335070066154
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00013550350558944046
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00020666696946136653
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0001317139103775844
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0002204562770202756
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00029738183366134763
MyApplication.js:24657 src/media/Microphone.hx:79: 0.00017812129226513207
MyApplication.js:24657 src/media/Microphone.hx:79: 0.00010081476648338139
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0002246346848551184
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00003725064016180113
MyApplication.js:24657 src/media/Microphone.hx:79: 0.00007402047049254179
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00032041093800216913
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0002939028199762106
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0000048436377255711704
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0004634085635188967
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0006297017098404467
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0002778245252557099
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0003970316029153764
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0007491848664358258
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0007422434282489121
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0005391527665778995
MyApplication.js:24657 src/media/Microphone.hx:79: -0.0005534329684451222
MyApplication.js:24657 src/media/Microphone.hx:79: -0.00047920990618877113
1 reply
i am on a html5 and featherUi
Gonzzalezz
@Gonzzalezz
Good evening every one
Thomas J. Webb
@thomasjwebb
Hello
Gonzzalezz
@Gonzzalezz
Sorry, I got it working !
Thanks; have a good night