Giter VIP home page Giter VIP logo

ayumi's Introduction

News

JavaScript implementation by Alexander Kovalenko: https://github.com/alexanderk23/ayumi-js

Ayumi API reference

void ayumi_configure(struct ayumi* ay, int is_ym, double clock_rate, int sr)

Configures the ayumi structure.

ay: The pointer to the ayumi structure.

is_ym: 1 if the chip is YM2149.

clock_rate: The clock rate of the chip.

sr: The output sample rate.

void ayumi_set_pan(struct ayumi* ay, int index, double pan, int is_eqp)

Sets the panning value for the specified sound channel.

ay: The pointer to the ayumi structure.

index: The index of the sound channel.

pan: The stereo panning value [0-1].

is_eqp: 1 if "equal power" panning is used.

void ayumi_set_tone(struct ayumi* ay, int index, int period)

Sets the tone period value for the specified sound channel.

ay: The pointer to the ayumi structure.

index: The index of the sound channel.

period: The tone period value [0-4095].

void ayumi_set_noise(struct ayumi* ay, int period)

Sets the noise period value.

ay: The pointer to the ayumi structure.

period: The noise period value [0-31].

void ayumi_set_mixer(struct ayumi* ay, int index, int t_off, int n_off, int e_on)

Sets the mixer value for the specified sound channel.

ay: The pointer to the ayumi structure.

index: The index of the sound channel.

t_off: 1 if the tone is off.

n_off: 1 if the noise is off.

e_on: 1 if the envelope is on.

void ayumi_set_volume(struct ayumi* ay, int index, int volume)

Sets the volume for the specified sound channel.

ay: The pointer to the ayumi structure.

index: The index of the sound channel.

volume: The volume [0-15].

void ayumi_set_envelope(struct ayumi* ay, int period)

Sets the envelope period value.

ay: The pointer to the ayumi structure.

period: The envelope period value [0-65535].

void ayumi_set_envelope_shape(struct ayumi* ay, int shape)

Sets the envelope shape value.

ay: The pointer to the ayumi structure.

shape: The envelope shape index [0-15].

void ayumi_process(struct ayumi* ay)

Renders the next stereo sample in ay->left and ay->right.

ay: The pointer to the ayumi structure.

void ayumi_remove_dc(struct ayumi* ay)

Removes the DC offset from the current sample.

ay: The pointer to the ayumi structure.

ayumi's People

Contributors

true-grue avatar

Watchers

James Cloos avatar

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.