GithubHelp home page GithubHelp logo

python-arcaea-library's Introduction

Python-Arcaea-Library

本Python包是一个用于处理Arcaea谱面 (*.aff) 相关的包,您可以使用此包编写您自己的Arcaea谱面工具。

更新日志

v1.0.0 - 2023-8-15

  • 上传到GitHub
  • 修复algorithm中处理计算Arc坐标相关函数错误的将SineOut和SineIn互相反着使用的问题

v1.1.0 - 2023-10-16

  • 添加了获取timingGroup事件列表的方法
    • logicChart.getTimingGroupEvents(int idx)
    • logicChart.getTimingGroupEventsUnchecked(int idx)
  • 在timingGroup中添加了获取指定事件的方法
    • timingGroup.getEventsByType(class t, bool toList)
    • timingGroup.getEventsIterableByType(class t)
    • timingGroup.getEventsBy(lambda t, bool toList)
    • timingGroup.getEventsIterableBy(lambda t)

使用例

读取谱面与保存谱面

from arclib.logChart import *

# 读取谱面
chart_path = 'input.aff'
with open(chart_path, 'r') as f:
    chart = logicChart(f.readlines())

# 保存谱面
chart = logicChart() # 这里因为是用于测试所以新建一个谱面
chart_path = 'output.aff'
with open(chart_path, 'w') as f:
    f.write(str(chart))

获取指定timinggroup中的所有事件

group_id = 0
# 获取组0 (基准组) 中的所有事件
base_group_events = chart.getTimingGroupEvents(group_id) 

python-arcaea-library's People

Contributors

lam0578 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

halosense

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.