Code Monkey home page Code Monkey logo

webaudioapi's Introduction

WebAudioAPI

웹오디오API 갖고 놀기 + 푸리에 변환

멜로디.html

(2021.01.29~31)

기능

  • WebAudioAPI의 오실레이터를 이용해 주파수를 발생시킨다
  • 키보드 자판을 누르면 해당되는 소리가 난다
  • 숫자키를 누르면 옥타브를 바꿀 수 있다
  • 내가 누른 것은 작은 글상자에 기록되며, 백스페이스 키를 누르면 지우는 것이 가능
  • 내가 원하는 파형 선택 가능 ( sine square sawtooth triangle )

연주 기능 사용법

문법

  • 공백이나 줄바꿈을 통해 각 음을 구분하며, 공백과 줄바꿈의 수는 중요하지 않다.
  • '-': 연음, '_': 공백 [옥타브][음이름][올림표] 올림표의 경우 샵:s, 플렛:p이다. (ex. 3옥타브 도샵: 3ds)

사용법

  • 큰 글창에 문법에 맞춰 입력
  • 재생 버튼 클릭
  • 얼씨구야.txt를 참고해보시라

기타사항

  • 데스크랍 파이어폭스 / 크롬에서만 정상 동작함

푸리에.html

(2021.01.29~31)

기능

  • 고속 푸리에 변환(FFT)를 사용해봤다. 여기를 사용함
  • FFT를 바탕으로, 오디어 데이터를 날것으로 분석해서 1<<13 / 1<<12 단위로 뜯어서 데이터 시각화 기능 + 음성 변조 기능 + 이퀄라이저 기능을 만들었음
  • 완성하고 보니 사실 이것들이 웹오디오API에서 기본적으로 제공하는 기능이었다는 놀라운 사실!

사용법

  • 원하는 파일을 추가한다
  • 재생시작 버튼을 누른다
  • 그래프 부분을 클릭하면 원이 생기고, 위아래로 드래그가 가능하다. 이퀄라이저다. 바뀐 파형이 투명한 회색으로 표시된다.
  • 슬라이드 바를 움직이면 키를 올리거나 낮출 수 있다.
  • 위쪽의 파형을 누르면, 해당 시간대로 이동한다.

기타사항

  • 데스크랍 파이어폭스 / 크롬에서만 정상 동작함

이산 푸리에 변환, 고속 푸리에 변환 보고서

내용

  • 이대로 끝내기 아쉬워, 수학적인 원리를 추가로 탐구했음. (2021.03.11 ~ 15)

푸리에 해석과 미분방정식 보고서

내용

  • 미분방정식과 관련된 푸리에 변환 탐구. (2021.09.27 ~ 28)

webaudioapi's People

Contributors

esctabcapslock avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

jangjonghwa

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.