Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Improvement: Transposing tabs with string adjustments.

未关闭
#1,587 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@Danielku15 已经在做这个了。

开始于 2024年7月17日。

评估

这个 Issue 还没有评估数据。

描述

Is there an existing issue for this?
  • I have searched the existing issues
Current Behavior

I'm experiencing issues with the transposition feature not working as expected. When I set transpositionPitches: [-4], the notes incorrectly go below 0. Instead, they should move up a string rather than displaying a -1.

Steps to Reproduce:

  1. Open the attached guitar tab file with no transposition applied (see Screenshot 1).
  2. Set transpositionPitches to [-4].
  3. Observe the transposed guitar tab (see Screenshot 2).

Expected Behavior:
The notes should transpose correctly by moving up a string instead of displaying a negative value, as demonstrated in the expected output from Songsterr (see Screenshot 3).

Screenshots:

  1. No transposition applied:
    Screenshot 2024-07-17 at 14 26 35

  2. After Setting transpositionPitches to [-4]:
    Screenshot 2024-07-17 at 14 28 52

  3. Expected Transposition Output - Screenshot from Songsterr for the same tab:

Screenshot 2024-07-18 at 01 15 47
Expected Behavior

The notes should transpose correctly by moving up a string instead of displaying a negative value, as demonstrated in the expected output from Songsterr (see Screenshot 3 above).

Steps To Reproduce
  1. Download the GP File:

  2. Set the Transposition:

    • Open the downloaded file and set transpositionPitches to [-4].
  3. Observe the Issue:

    • You will notice that the notes incorrectly move below 0, displaying negative values.
  4. Compare with Songsterr:

Link to jsFiddle, CodePen, Project

No response

Found in Version

1.4 (alpha)

Platform

Web

Environment
- **OS**:
- **Browser**:
- **.net Version**:
Anything else?

No response

主要语言
TypeScript
星标
1.9k
派生
297
平均合并
9 小时 2 分钟
30 天内合并 PR
44

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CoderLine/alphaTab 的其他 Issue

查看 CoderLine/alphaTab 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。