gingo 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. gingo-1.0.0/.gitattributes +2 -0
  2. gingo-1.0.0/.gitignore +71 -0
  3. gingo-1.0.0/CMakeLists.txt +43 -0
  4. gingo-1.0.0/LICENSE +21 -0
  5. gingo-1.0.0/MANIFEST.in +5 -0
  6. gingo-1.0.0/PKG-INFO +1098 -0
  7. gingo-1.0.0/README.md +1065 -0
  8. gingo-1.0.0/bindings/pybind_module.cpp +1306 -0
  9. gingo-1.0.0/cpp/include/gingo/chord.hpp +167 -0
  10. gingo-1.0.0/cpp/include/gingo/duration.hpp +92 -0
  11. gingo-1.0.0/cpp/include/gingo/event.hpp +112 -0
  12. gingo-1.0.0/cpp/include/gingo/field.hpp +245 -0
  13. gingo-1.0.0/cpp/include/gingo/gingo.hpp +26 -0
  14. gingo-1.0.0/cpp/include/gingo/internal/data_ops.hpp +39 -0
  15. gingo-1.0.0/cpp/include/gingo/internal/lookup_data.hpp +56 -0
  16. gingo-1.0.0/cpp/include/gingo/internal/lookup_tree.hpp +43 -0
  17. gingo-1.0.0/cpp/include/gingo/internal/mode_data.hpp +33 -0
  18. gingo-1.0.0/cpp/include/gingo/internal/notation_utils.hpp +58 -0
  19. gingo-1.0.0/cpp/include/gingo/internal/table.hpp +103 -0
  20. gingo-1.0.0/cpp/include/gingo/internal/types.hpp +58 -0
  21. gingo-1.0.0/cpp/include/gingo/interval.hpp +101 -0
  22. gingo-1.0.0/cpp/include/gingo/note.hpp +94 -0
  23. gingo-1.0.0/cpp/include/gingo/scale.hpp +193 -0
  24. gingo-1.0.0/cpp/include/gingo/sequence.hpp +114 -0
  25. gingo-1.0.0/cpp/include/gingo/tempo.hpp +65 -0
  26. gingo-1.0.0/cpp/include/gingo/time_signature.hpp +61 -0
  27. gingo-1.0.0/cpp/include/gingo/tree.hpp +89 -0
  28. gingo-1.0.0/cpp/src/chord.cpp +515 -0
  29. gingo-1.0.0/cpp/src/duration.cpp +164 -0
  30. gingo-1.0.0/cpp/src/event.cpp +67 -0
  31. gingo-1.0.0/cpp/src/field.cpp +701 -0
  32. gingo-1.0.0/cpp/src/internal/data_ops.cpp +73 -0
  33. gingo-1.0.0/cpp/src/internal/lookup_data.cpp +295 -0
  34. gingo-1.0.0/cpp/src/internal/lookup_tree.cpp +369 -0
  35. gingo-1.0.0/cpp/src/internal/mode_data.cpp +178 -0
  36. gingo-1.0.0/cpp/src/internal/notation_utils.cpp +234 -0
  37. gingo-1.0.0/cpp/src/interval.cpp +243 -0
  38. gingo-1.0.0/cpp/src/note.cpp +225 -0
  39. gingo-1.0.0/cpp/src/scale.cpp +614 -0
  40. gingo-1.0.0/cpp/src/sequence.cpp +137 -0
  41. gingo-1.0.0/cpp/src/tempo.cpp +98 -0
  42. gingo-1.0.0/cpp/src/time_signature.cpp +65 -0
  43. gingo-1.0.0/cpp/src/tree.cpp +801 -0
  44. gingo-1.0.0/docs/api/referencia.md +554 -0
  45. gingo-1.0.0/docs/guia/audio.md +453 -0
  46. gingo-1.0.0/docs/guia/comecando.md +909 -0
  47. gingo-1.0.0/docs/guia/conceitos-basicos.md +548 -0
  48. gingo-1.0.0/docs/guia/exemplos-praticos.md +0 -0
  49. gingo-1.0.0/docs/guia/instalacao.md +470 -0
  50. gingo-1.0.0/docs/guia/introducao.md +247 -0
  51. gingo-1.0.0/docs/guia/primeiros-passos.md +1076 -0
  52. gingo-1.0.0/docs/guia/ritmo.md +273 -0
  53. gingo-1.0.0/docs/index.md +354 -0
  54. gingo-1.0.0/docs/referencias.md +185 -0
  55. gingo-1.0.0/docs/roadmap.md +121 -0
  56. gingo-1.0.0/mkdocs.yml +91 -0
  57. gingo-1.0.0/pyproject.toml +57 -0
  58. gingo-1.0.0/python/gingo/__init__.py +106 -0
  59. gingo-1.0.0/python/gingo/__init__.pyi +476 -0
  60. gingo-1.0.0/python/gingo/__main__.py +1219 -0
  61. gingo-1.0.0/python/gingo/audio.py +507 -0
  62. gingo-1.0.0/python/gingo/py.typed +0 -0
  63. gingo-1.0.0/roadmap.md +152 -0
  64. gingo-1.0.0/tests/cpp/CMakeLists.txt +20 -0
  65. gingo-1.0.0/tests/cpp/test_chord.cpp +84 -0
  66. gingo-1.0.0/tests/cpp/test_compare.cpp +459 -0
  67. gingo-1.0.0/tests/cpp/test_field.cpp +311 -0
  68. gingo-1.0.0/tests/cpp/test_interval.cpp +162 -0
  69. gingo-1.0.0/tests/cpp/test_note.cpp +136 -0
  70. gingo-1.0.0/tests/cpp/test_rhythm.cpp +328 -0
  71. gingo-1.0.0/tests/cpp/test_scale.cpp +522 -0
  72. gingo-1.0.0/tests/cpp/test_tree.cpp +328 -0
  73. gingo-1.0.0/tests/python/conftest.py +2 -0
  74. gingo-1.0.0/tests/python/test_audio.py +328 -0
  75. gingo-1.0.0/tests/python/test_chord.py +53 -0
  76. gingo-1.0.0/tests/python/test_compare.py +511 -0
  77. gingo-1.0.0/tests/python/test_field.py +294 -0
  78. gingo-1.0.0/tests/python/test_note.py +104 -0
  79. gingo-1.0.0/tests/python/test_pythonic.py +1053 -0
  80. gingo-1.0.0/tests/python/test_rhythm.py +299 -0
  81. gingo-1.0.0/tests/python/test_scale.py +470 -0
  82. gingo-1.0.0/tests/python/test_tree.py +305 -0
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
gingo-1.0.0/.gitignore ADDED
@@ -0,0 +1,71 @@
1
+ # Prerequisites
2
+ *.d
3
+
4
+ # Compiled Object files
5
+ *.slo
6
+ *.lo
7
+ *.o
8
+ *.obj
9
+
10
+ # Precompiled Headers
11
+ *.gch
12
+ *.pch
13
+
14
+ # Compiled Dynamic libraries
15
+ *.so
16
+ *.dylib
17
+ *.dll
18
+
19
+ # Fortran module files
20
+ *.mod
21
+ *.smod
22
+ .files
23
+
24
+ # Compiled Static libraries
25
+ *.lai
26
+ *.la
27
+ *.a
28
+ *.lib
29
+
30
+ # Executables
31
+ *.exe
32
+ *.out
33
+ *.app
34
+
35
+ # CMake build directories
36
+ build/
37
+ build_*/
38
+ CMakeCache.txt
39
+ CMakeFiles/
40
+ cmake_install.cmake
41
+ CTestTestfile.cmake
42
+ DartConfiguration.tcl
43
+ Makefile
44
+ Testing/
45
+ _deps/
46
+
47
+ # Python
48
+ __pycache__/
49
+ *.py[cod]
50
+ *.egg-info/
51
+ dist/
52
+ *.whl
53
+ *.so
54
+
55
+ # Virtual environment
56
+ .venv/
57
+
58
+ # MkDocs
59
+ site/
60
+
61
+ # Obsolete / archived files
62
+ .old/
63
+
64
+ # Local tools
65
+ .claude/
66
+ .pytest_cache/
67
+
68
+ # Agents
69
+ CLAUDE.md
70
+ AGENTS.md
71
+ SOUL.md
@@ -0,0 +1,43 @@
1
+ cmake_minimum_required(VERSION 3.15)
2
+ project(gingo VERSION 1.0.0 LANGUAGES CXX)
3
+
4
+ set(CMAKE_CXX_STANDARD 17)
5
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
6
+ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
7
+
8
+ # ---------------------------------------------------------------------------
9
+ # C++ core library (static)
10
+ # ---------------------------------------------------------------------------
11
+ file(GLOB_RECURSE LIB_SOURCES "cpp/src/*.cpp")
12
+
13
+ add_library(gingo_core STATIC ${LIB_SOURCES})
14
+
15
+ target_include_directories(gingo_core
16
+ PUBLIC cpp/include
17
+ )
18
+
19
+ target_compile_features(gingo_core PUBLIC cxx_std_17)
20
+
21
+ # ---------------------------------------------------------------------------
22
+ # pybind11 Python extension module
23
+ # ---------------------------------------------------------------------------
24
+ find_package(pybind11 CONFIG QUIET)
25
+
26
+ if(pybind11_FOUND)
27
+ pybind11_add_module(_gingo bindings/pybind_module.cpp)
28
+ target_link_libraries(_gingo PRIVATE gingo_core)
29
+ target_include_directories(_gingo PRIVATE cpp/include)
30
+ install(TARGETS _gingo DESTINATION gingo)
31
+ else()
32
+ message(STATUS "pybind11 not found — Python bindings will not be built.")
33
+ endif()
34
+
35
+ # ---------------------------------------------------------------------------
36
+ # C++ tests (optional)
37
+ # ---------------------------------------------------------------------------
38
+ option(GINGO_BUILD_TESTS "Build C++ tests" OFF)
39
+
40
+ if(GINGO_BUILD_TESTS)
41
+ enable_testing()
42
+ add_subdirectory(tests/cpp)
43
+ endif()
gingo-1.0.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 Saulo Verissimo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,5 @@
1
+ recursive-include cpp *.hpp *.cpp
2
+ recursive-include bindings *.cpp
3
+ include CMakeLists.txt
4
+ include LICENSE
5
+ include README.md