Git Product home page Git Product logo

Comments (28)

cnlohr avatar cnlohr commented on August 22, 2024 1

@JINODK Update to the newest copy in git... It looks like there's some discrepancy on 64-bit with the Windows sound system.

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

Can you paste the entire output, earlier on of the application? It may be unable to find the other tools.

What is your build environment TCC or GCC (mingw)? Note that visual studio is not supported :-/.

from colorchord.

xiongyihui avatar xiongyihui commented on August 22, 2024

I also don't get it work on windows.

Built with TCC (compile.bat) on Windows 10 64bit surfacebook

The log is:

Output Drivers:
        DisplayNetwork
        DisplayArray
        DisplayHIDAPI
        DisplayOutDriver
        DisplayPie
        null
        OutputCells
        OutputLinear
        OutputProminent
        OutputVoronoi
Set: cpu_autolimit 1
Set: set_screenx 720
Set: set_screeny 480
Set: sample_channel -1
Loading: OutputVoronoi
Found: OutputVoronoi 000000000041002C
Loading: DisplayArray
Found: DisplayArray 0000000000405FD0
Initializing sound.  Recommended driver: WIN
Buffer: 384
WFMT Size (debugging temp for TCC): 18
WFMT: 2 44100 88200
Wave Devs: 1; WAVE_MAPPER: -1; Selected Input: 1
waveInOpen: 0000000002873E18, 000000000014ED1A
WIO: 2
WIS: 5
24 5 55.000000 20.000000 2.000000
Set: cpu_autolimit 1
Set: title PA Test
Set: set_screenx 720
Set: set_screeny 480
Set: buffer 384
Set: play 0
Set: rec 1
Set: channels 2
Set: samplerate 44100
Set: wininput 1
Set: sample_channel -1
Set: sourcename default
Set: amplify 2.0
Set: base_hz 55
24 5 55.000000 20.000000 2.000000
Set: dft_iir 0.6
Set: dft_q 20.0000
Set: dft_speedup 1000.0000
Set: octaves 5
24 5 55.000000 20.000000 2.000000
Set: do_progressive_dft 4fa
Set: filter_iter 2
Set: filter_strength .5
Set: freqbins 24
24 5 55.000000 20.000000 2.000000
Set: note_attach_amp_iir 0.3500
Set: note_attach_amp_iir2 0.250
Set: note_attach_freq_iir 0.3000
Set: note_combine_distance 0.5000
Set: note_jumpability 1.8000
Set: note_minimum_new_distribution_value 0.0200
Set: note_out_chop 0.05000
Set: outdrivers OutputVoronoi, DisplayArray
Set: lightx 64
Set: lighty 32
Set: fromsides 1
Set: shape_cutoff 0.03
Set: satamp 5.000
Set: amppow 2.510
Set: distpow 1.500
Button: 691,95 (1) -> 1
Button: 691,95 (1) -> 0

image

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

You likely need to change the wininput. Try setting it to different values in default.conf. Try values from -1 to about 8.

from colorchord.

Fireflaker avatar Fireflaker commented on August 22, 2024

Thanks!

from colorchord.

Fireflaker avatar Fireflaker commented on August 22, 2024

Tried wininput=8 and wininput=1, both do not work.
Tried wininput=-1, works.
The default is wininput=1, does not work, recommend to update the default.conf.

To minimize the suffering of newbies trying to build the exe for windows, may I upload some generated ColorChord exe files?

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

I'll make that change, and yes, you may. Please only upload one.

from colorchord.

JINODK avatar JINODK commented on August 22, 2024

Me too, changed the wininput value but still no luck, no mic detected
Log:

Output Drivers:
        DisplayNetwork
        DisplayArray
        DisplayHIDAPI
        DisplayOutDriver
        DisplayPie
        null
        OutputCells
        OutputLinear
        OutputProminent
        OutputVoronoi
Set: cpu_autolimit 1
Set: set_screenx 720
Set: set_screeny 480
Set: sample_channel -1
Loading: OutputVoronoi
Found: OutputVoronoi 0000000000410240
Loading: DisplayArray
Found: DisplayArray 0000000000405FD0
Initializing sound.  Recommended driver: WIN
Buffer: 384
WFMT Size (debugging temp for TCC): 18
WFMT: 2 44100 88200
Wave Devs: 1; WAVE_MAPPER: -1; Selected Input: -1
waveInOpen: 0000000000A2EED8, 000000000014ED1A
Mic Open.
WIO: 0
WIS: 0
24 5 55.000000 20.000000 2.000000
Set: cpu_autolimit 1
Set: title PA Test
Set: set_screenx 720
Set: set_screeny 480
Set: buffer 384
Set: play 0
Set: rec 1
Set: channels 2
Set: samplerate 44100
Set: wininput -1
Set: sample_channel -1
Set: sourcename default
Set: amplify 2.0
Set: base_hz 55
24 5 55.000000 20.000000 2.000000
Set: dft_iir 0.6
Set: dft_q 20.0000
Set: dft_speedup 1000.0000
Set: octaves 5
24 5 55.000000 20.000000 2.000000
Set: do_progressive_dft 4
Set: filter_iter 2
Set: filter_strength .5
Set: freqbins 24
24 5 55.000000 20.000000 2.000000
Set: note_attach_amp_iir 0.3500
Set: note_attach_amp_iir2 0.250
Set: note_attach_freq_iir 0.3000
Set: note_combine_distance 0.5000
Set: note_jumpability 1.8000
Set: note_minimum_new_distribution_value 0.0200
Set: note_out_chop 0.05000
Set: outdrivers OutputVoronoi, DisplayArray
Set: lightx 64
Set: lighty 32
Set: fromsides 1
Set: shape_cutoff 0.03
Set: satamp 5.000
Set: amppow 2.510
Set: distpow 1.500

Maybe there any setting to make it work? Also the compile.bat don't work anymore.
untitled

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

@JINODK I am able to reproduce the issue. Looking into it now.

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

@JINODK I am able to reproduce the issue. Looking into it now. On initial investigation it looks like some sort of weird 64-bit 32-bit problem.

from colorchord.

JINODK avatar JINODK commented on August 22, 2024

The windows is just normal for me, until windows 10. When i use ubuntu, it just work fine.
Also i only use one microphone input, others are disabled.
image
image

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

@JINODK Do you know which compiler exactly you are using? I can't seem to get this to work with the 64-bit compiler at all.

from colorchord.

JINODK avatar JINODK commented on August 22, 2024

I use tiny C compiler, that's the only thing i can see on your compile.bat

from colorchord.

JINODK avatar JINODK commented on August 22, 2024

Also i don't know why i'm not able to use the makefile with the mingw32-make command to create the program too, it seems like missing something

$ mingw32-make colorchord.exe
i686-w64-mingw32-gcc -g -DICACHE_FLASH_ATTR= -I../embeddedcommon -I. -O1    -o colorchord.exe os_generic.c main.c dft.c decompose.c filter.c color.c notefinder.c util.c outdrivers.c DrawFunctions.c parameters.c chash.c WinDriver.c sound.c sound_null.c sound_win.c OutputVoronoi.c OutputProminent.c DisplayArray.c OutputLinear.c DisplayPie.c DisplayNetwork.c hook.c RecorderPlugin.c ../embeddedcommon/DFT32.c OutputCells.c configs.c hidapi.c DisplayHIDAPI.c -lwinmm -lgdi32 -lws2_32  -lsetupapi
process_begin: CreateProcess(NULL, i686-w64-mingw32-gcc -g -DICACHE_FLASH_ATTR= -I../embeddedcommon -I. -O1 -o colorchord.exe os_generic.c main.c dft.c decompose.c filter.c color.c notefinder.c util.c outdrivers.c DrawFunctions.c parameters.c chash.c WinDriver.c sound.c sound_null.c sound_win.c OutputVoronoi.c OutputProminent.c DisplayArray.c OutputLinear.c DisplayPie.c DisplayNetwork.c hook.c RecorderPlugin.c ../embeddedcommon/DFT32.c OutputCells.c configs.c hidapi.c DisplayHIDAPI.c -lwinmm -lgdi32 -lws2_32 -lsetupapi, ...) failed.
make (e=2): The system cannot find the file specified.
Makefile:25: recipe for target 'colorchord.exe' failed
mingw32-make: *** [colorchord.exe] Error 2

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

Woof... I was doing everything against tinyCC... But the principle still applies. Try adding on the -m32 flag.

from colorchord.

JINODK avatar JINODK commented on August 22, 2024

It worked! Thanks

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

@JINODK Can you also compile it too? Are you compiling for 32- or 64- bit?

from colorchord.

JINODK avatar JINODK commented on August 22, 2024

ok, mine is 64 bit, may i leave the exe in your colorchord 2 so other people can do it easily ?

from colorchord.

JINODK avatar JINODK commented on August 22, 2024

Bad new: the compile.bat don't want to work anymore

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

Yes.

Can you please give your exact compilation lines here?

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

(as I was unable to get 64-bit working at all)

from colorchord.

JINODK avatar JINODK commented on August 22, 2024

Ok i can run it now
i think maybe add the "pause" in the compile.bat so it make people who haven't install tcc yet can read the cmd properly, because it just like a cmd window just flash through when it can't find the tcc.

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

So you are compiling with 64-bit TCC?!?

from colorchord.

JINODK avatar JINODK commented on August 22, 2024

Yeah

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

@JINODK Can you give me your exact compilation lines?

Are you on the current master branch??

My 64-bit has this mystery failure where the MMSystem callback is never being called.

from colorchord.

Fireflaker avatar Fireflaker commented on August 22, 2024

from colorchord.

JINODK avatar JINODK commented on August 22, 2024

This is all file i have downloaded to make colorchord
https://drive.google.com/open?id=1xvSa6NEZ8QXzNIkcMzAy6tBf62wQVKBw
and i use the compile.bat, the mingw32-make don't work for me

from colorchord.

cnlohr avatar cnlohr commented on August 22, 2024

Mingw32 make I believe only works in Linux.

from colorchord.

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.