Audio input not showing

Alessio's Avatar

Alessio

15 Aug, 2018 09:55 PM

Hello!
I enabled Device Support in settings, rebooted, but I can't see "Audio input". I'm trying to animate shapes based on sound (external file or mic recording). Anyone can help?

Thanks a lot!

  1. 1 Posted by alessio on 18 Aug, 2018 08:36 PM

    alessio's Avatar

    Hi John!
    Thanks a lot for your response!
    Yes this is exactly what I was looking for. It doesn't really work on my file, but works on yours so I think I'll find the problem and fix it on my file :)
    Thanks again for your help!

  2. 2 Posted by alessio on 18 Aug, 2018 09:28 PM

    alessio's Avatar

    BTW, Do you also know how to export a video with audio analysis? The preview works, but if I export it shows blank canvas...
    Thanks! :)

  3. Support Staff 3 Posted by john on 19 Aug, 2018 08:27 AM

    john's Avatar

    Alessio,

    Sorry, I'm a little out of my depth here. I played around a bit using both the audio input and audio player devices but was not able to generate a movie (except in a limited way). I'm not sure it's even possible to generate live audio visualizations and record a movie at the same time in NodeBox.

    I did discover that screen recordings work pretty well, so that's an option. Simple movie attached.

    Frederick, Lucas, can you confirm? Is there any way to export live visualizations as movies?

    John

  4. Support Staff 4 Posted by john on 19 Aug, 2018 08:32 AM

    john's Avatar

    Oops!

    I tried to edit this thread and accidentally deleted my earlier response. Here it is again for posterity:

    Hi Alessio,

    I have never tried this, but looking through past forum discussions I found this short note from Lucas:

    "in preferences check device support. Then in the file menu select devices and add an audio player or audio input. Then get an audio-analysis node."

    So "Audio Input" is not a node. It's a device type which you can add in the Devices dialog.

    When I tried this it worked for me. Attached is a very simple audio sampler. To try it launch the Nodebox file, under File/Devices click the Start button on audio1, close the dialog, hit play, and start talking or play music.

    There are several audio nodes other than the Audio Analysis node. I don't know how they work, but it would be fun playing with them. Search for Minim on the web for clues. If anyone comes up with an interesting visualization please share!

    John

  5. Support Staff 5 Posted by Stefan Gabriels on 20 Aug, 2018 05:40 PM

    Stefan Gabriels's Avatar

    Hello, we don't currently have a way of exporting live animation and sound. I don't know how easy/difficult it would be to implement this, but I agree that it would be a nice addition to the program.

    Stefan

  6. 6 Posted by sundar on 10 Dec, 2018 01:27 PM

    sundar's Avatar

    this is awesome! @John I couldn't open your ndbx file but followed your directions and works great (with both mic and mp3 tracks)—thanks! (was doing this in p5js but so chuffed can do it in nodeBox now!)

  7. 7 Posted by sundar on 10 Dec, 2018 01:47 PM

    sundar's Avatar

    just noticed, couldn't open file until I've checked the device support in file>preferences as you already mentioned 'in preferences check device support' —then it opens fine :)

  8. 8 Posted by denis.zaporozha... on 25 Nov, 2020 02:12 PM

    denis.zaporozhan's Avatar

    How to render a video with audio and audio based animation? I am using audio_wave and see the result in the program. But when exporting to MP4, there is no animation (

  9. Support Staff 9 Posted by john on 26 Nov, 2020 05:10 AM

    john's Avatar

    Denis,

    First, what machine and system are you using? Movie export of any kind is still not working on Mac Catalina. Frederik has actually fixed this but has not yet released the new version.

    But based on the above thread, I don't think Nodebox could ever export both video (animation) and audio at the same time as an MP4. If other readers have ever done this please speak up and correct me.

    One thing you could try: record the audio, feed the audio into your NodeBox program to produce the animation (using the frame node), and save that animation as a normal (silent) MP4. (If you are on Catalina you will have to use "Export Range" to save the individual frames as PNGs and then stitch them together to form a movie - see my instructions elsewhere in the forum.)

    THEN use a third party app to recombine your Nodebox animation with your recorded audio. There are any number of apps that should be able to do this without too much trouble (though I have never actually tried this myself).

    Not a perfect solution, but desperate times call for desperate measures.

    I am adding Frederik to this thread in case he can add more or tell us when he is going to release the next rev of NodeBox with working movie export. Not sure he is still listening to the forum. Frederik?

    Sorry I couldn't be more help.

    John

  10. Support Staff 10 Posted by john on 07 Jul, 2021 02:14 AM

    john's Avatar

    UPDATE

    At Seohyo's request I just tried the same simple test file I posted above. I am now running a Mac under Big Sur.

    It works fine if you set the device to audio player and point it to an mp3 file. But if you set it to audio input it no longer seems to work with the internal microphone.

    Seohyo reports the same result under Catalina.

    Frederik, if you're still there, can you confirm this? I'm guessing this may be a permissions issue. Are you aware of any workarounds?

    Thanks,

    John

    P.S. I found this. "In macOS 10.14 and later, the user must explicitly grant permission for each app to access cameras and microphones." Here are details for app developers to meet this new requirement:

    https://developer.apple.com/documentation/avfoundation/cameras_and_...

  11. 11 Posted by Amanuel Mekasha... on 23 Apr, 2022 12:46 PM

    Amanuel Mekashaw's Avatar

    hi guys i was wondering when i tried to open certain nodebox project files that have been posted here in my case http://support.nodebox.net/discussions/nodebox-2-3/6073/assets/9576... file it shows the error message that is displayed in the image below and also in my nodebox V3.0.52 there is no section for importing audio or so called Device section doesn't appear at all

    if you guys have a fix please let me know

    Thanks :)

  12. Support Staff 12 Posted by john on 01 May, 2022 09:55 AM

    john's Avatar

    Hi Amanuel,

    Are you still there? Sorry - for some reason the forum software dumped your note in the spam folder and I only just now saw it.

    I was able to launch the Nodebox file you referenced and got it to work for me using an MP3 music file as the audio source.

    The way audio works in Nodebox is quite circuitous and not well-documented.

    • First you have to make sure Device Support is enabled under Preferences. If it is not, check the box and relaunch Nodebox.
    • Sound input is achieved using the audio_analysis node. This node is already present at the top of the support file you referenced.
    • The first port in the audio_analysis node is "Device Name". In order to put the correct value here, you first have to open the Devices dialog under the NodeBox File menu
    • click the add button in the upper right of the dialog and from the pulldown choose "Audio Player". It will add a device with a name, probably "audio2"
    • Click the File button in that device entry to select an audio file. Check the "Sync with timeline" checkbox
    • In your audio_analysis node, change the Device Name to "audio2" (or whatever)
    • Hit the Play button in the lower left of the Nodebox window to start the frame count incrementing
    • Reopen the Devices dialog (if it's not already open) and press the Play or Resume button

    You should now hear the music and also see the colored circles dancing on your screen.

    Please give this a try and confirm you were able to get it working. If you have any other problems I will try to help.

    Sorry again about the slow reply. I wish the forum software would stop filing people's requests in the spam folder!

    John

  13. 13 Posted by Amanuel Mekasha... on 02 May, 2022 06:59 PM

    Amanuel Mekashaw's Avatar

    Hi John
    first thanks for your response
    i tried every steps that you mentioned but when i press play it shows the error down below how can i fix that.

  14. Support Staff 14 Posted by john on 03 May, 2022 04:46 AM

    john's Avatar

    Amanuel,

    I see you are running the Linux version of Nodebox. I'm not a Linux user so can be of little help.

    On the off chance that he is available, I have added Fredrik to this conversation. Perhaps he can help (if he sees this).

    Are there any Linux Nodebox users out there who have gotten the audio_analysis node to work properly? If so, please weigh in.

    I'm sorry, Amanuel. I'm afraid there's not much more I can do. I fear this may be another instance of Nodebox showing its age.

    John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Screen_Shot_2018-08-15_at_10.53.40_pm.png 46.7 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

06 Feb, 2025 01:37 AM
04 Feb, 2025 06:32 AM
04 Feb, 2025 05:04 AM
30 Jan, 2025 09:31 AM
30 Jan, 2025 09:08 AM

 

30 Jan, 2025 08:40 AM
24 Jan, 2025 07:50 AM
22 Jan, 2025 11:42 PM
21 Jan, 2025 09:43 AM
21 Jan, 2025 09:41 AM
21 Jan, 2025 09:36 AM