Code Monkey home page Code Monkey logo

chongchong-free's Introduction

👋 Ciallo~(∠・ω< )⌒★!!

🏠 A senior high school student.

🚀 Always trying to make something cool!

🍀 Feel free to contact me!

⭐ I don't just do coding stuff here :D

📱 How to Reach me

📈 Stats

stats langs

🛠️ Developing tools and services

Tools I mess with

Visual Studio   VSCode   IntelliJ   Git 

Services I use

Services

Tech Stack

Languages

Skills I want to learn / I'm learning

114514

⏲️ My WakaTime stats

Java              2 hrs 32 mins   ████████████████▓░░░░░░░░   66.77 %
Markdown          39 mins         ████▒░░░░░░░░░░░░░░░░░░░░   17.08 %
YAML              21 mins         ██▒░░░░░░░░░░░░░░░░░░░░░░   09.48 %
Properties        9 mins          █░░░░░░░░░░░░░░░░░░░░░░░░   04.30 %
Gradle            2 mins          ▒░░░░░░░░░░░░░░░░░░░░░░░░   01.28 %

Visitor Count:

If you are unable to see this, please refresh the page.

chongchong-free's People

Contributors

codergrowing avatar hexadecimal233 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

Watchers

 avatar

chongchong-free's Issues

可能不支持坐山听风老师的所有作品 Uncaught Error Error: TNaN is not a valid duration.

如题,具体报错如下

Uncaught Error Error: TNaN is not a valid duration.
    at getTickDuration (e:\chongchong-free-master\node_modules\midi-writer-js\build\index.js:355:17)
    at NoteEvent (e:\chongchong-free-master\node_modules\midi-writer-js\build\index.js:794:31)
    at writeMIDI (e:\chongchong-free-master\libCCMZ.js:148:20)
    at writeAndConvert (e:\chongchong-free-master\functions.js:26:17)
    at <anonymous> (e:\chongchong-free-master\libCCMZ.js:56:17)

原因是MidiWriter.NoteEventmDurationundefined
进一步向上溯源

if (tick === thisTick) {
              mDuration = baseMultiplier * lastTempo / currTempo;
              mTick = baseMultiplier * lastTempo / currTempo;
            }

因为在此处if (tick === thisTick) 为假,所以直接跳过了mDuration的赋值
因为我看不懂这段代码为何要这样计算所以也没法改,除了这位老师的作品外又测试了其他几首,复杂一点的作品速度就有问题了
如果作者能补完核心代码的注释那就好了

解压文件后没有chongchong-free.js

下载代码解压后,在文件夹里执行了npm installnode chongchong-free.js,发生错误如下

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'C:\Users\Lazurit\Desktop\chongchong-free-master\chong
chong-free.js'
?[90m    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:9
33:15)?[39m
?[90m    at Function.Module._load (node:internal/modules/cjs/loader:778:27)?[39m

?[90m    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/r
un_main:81:12)?[39m
?[90m    at node:internal/main/run_main_module:17:47?[39m {
  code: ?[32m'MODULE_NOT_FOUND'?[39m,
  requireStack: []
}

没用过js,还请指教

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.