Code Monkey home page Code Monkey logo

noisy's People

Contributors

jfeser avatar jonshea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

noisy's Issues

iPhone

+1 for an iPhone fork. Same UI, same everything, just a crazy simple background noise app for iPhone with nice brownian noise. (I agree, it is good.)

Smooth cutoff slider

Hi

Thank you very much for the update with the Brown noise.

Have you thought about putting a second slider under volume, to tune the "high cutoff" in a continuous way? So that you could get white, pink, brown, and all the variations in between (and maybe lower than brown too.) The three buttons on top could be just "presets" for the slider.

I mean, judging by this http://en.wikipedia.org/wiki/Colors_of_noise the color is just the cutoff rate of the frequency spectrum, so it's at least theoretically possible to make a continuous setting.

AppleScript property set are not responded to in App

Summary

When the application properties are set via AppleScript, the application does not reflect them in the UI or the audio.

Noisy App

About shows v1.3, but I downloaded the "1.5" version from the zip file from this repository. The version number does not seem to have been bumped with the latest release / linked Zip. (#13)

Steps to reproduce

When launching the app, I manually select White and adjust the volume slider pretty low.

Running the following AppleScript, I see that I can read the Application properties correctly:

tell application "Noisy"
	get noise type
	get noise volume
end tell

result:

tell application "Noisy"
	get noise type
		--> white
	get noise volume
		--> 9
end tell

Then, I use the following AppleScript to set the properties:

tell application "Noisy"
	set noise type to pink
	set noise volume to 20
end tell

Then I run the first AppleScript from above to ensure that the properties are set:

tell application "Noisy"
	get noise type
	get noise volume
end tell

result:

tell application "Noisy"
	get noise type
		--> pink
	get noise volume
		--> 20
end tell

At no point did the Noisy application change the noise type from white to pink, nor did the volume increase from 9 to 20.

2024 Build

Could someone build this for 2024 macOS versions and upload the binaries? Or could someone provide build instructions for those of us without experience building macOS codebases like this?

Improving Brownian noise

The Brownian noise sounds better when the random walk is reflected at the boundaries like this:

    double brown = _lastBrownSample;

    for (i = 0; i < bufferFrames; i++) {
        double white = ((long)sGetNextRandomNumber()) * (double)(1.0f / LONG_MAX);
        brown += white;

        if (brown > 32.0) brown -= brown - 32.0;
        if (brown < -32.0) brown -= brown + 32.0;

        sample = (float)brown * 0.03125 * _volume;
        *buffer++ = sample;
    }

    _lastBrownSample = brown;

I've also added a new member variable which stores the last sample so that the transition is always seamless. Currently, there are occasionally subtle click noises when the difference between the first and last sample happen to be large.

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.